Solved! Go to Solution.
Thanks for the responses. Can anyone provide an example of just testing whether a parameter exists?
# test if the third parameter was set if arcpy.GetParameterAsText(2) == "": do this else: do that
# test if the third parameter was checked # Booleans come across as the string "true" or "false" if arcpy.GetParameterAsText(2) == "true": do this else: do that
Thanks for the responses. Can anyone provide an example of just testing whether a parameter exists?
# test if the third parameter was set if arcpy.GetParameterAsText(2) == "": do this else: do that
# test if the third parameter was checked # Booleans come across as the string "true" or "false" if arcpy.GetParameterAsText(2) == "true": do this else: do that