h = int(arcpy.GetParameterAsText(0)) if h >= 6 and h < 12: arcpy.SetParameterAsText(1, "Raster_Morning") elif h >= 12 and h < 18: arcpy.SetParameterAsText(1, "Raster_Afternoon") elif h >= 18 and h < 23: arcpy.SetParameterAsText(1, "Raster_Evening") else: arcpy.SetParameterAsText(1, "Raster_Night")
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.