The quotes matter
>>> arcpy.env.overwriteOutput = 'True' >>> arcpy.env.overwriteOutput True >>> arcpy.env.overwriteOutput = 1 >>> arcpy.env.overwriteOutput True
>>> arcpy.env.overwriteOutput = 'False' >>> arcpy.env.overwriteOutput False >>> bool('False') True
if arcpy.env.overwriteOutput: print "It is true!" else: print "It is false!"
== True
== 'True'
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.