I have some scripts that make symbology for different layers in my TOC. And now I want to merge them into one big script which should have parameters chosen by user to start certain part of script. For instance I have three layers: GGG, DDD, DDA. The whole script contains code to make symbology for all these layers. But is it possible to make something like this?
If box "DDD" is checked script run the part of it which will paint only DDD layer. If it is possible what kind of code I should add to script?
Updated code:
for s in selected:
if selected == "DDD":
arcpy.AddMessage("Making a DDD")
ary = arcpy.mapping.Layer(r"\\SRV-NAS-03\Projects\FIAS_MultiPART.lyr")
arcpy.mapping.AddLayer (df,ary,"AUTO_ARRANGE")
arcpy.RefreshActiveView()
arcpy.RefreshTOC()
It is taken from this answer to Unable to Provide Input for a MultiValue Parameter Script Tool