boolean expression doesn't match
<p>I having a simple issue which I don't seem to understand why,<code>force_edl</code> variable value is 'False" (its an option to my python script and user enters True or False)but the conditions <code>if force_edl == False:</code> and            <code>if not force_edl</code> doesnt seem to match,how do I debug this problem?below code always goes to else part...is there way to strip bool values?</p>

<pre><code>        print "force_edl " + force_edl //prints false
        if force_edl == False:
        #if not force_edl
             print "False"
        else:
             print "True"
</code></pre>

<p>Try setting it to a string, int or boolean when needed.  Right now your trying to use a boolean as a string which wont work.</p>

<pre><code>enter code here
force_edl = int(False)
print "force_edl " + str(force_edl)
if force_edl == False:
         print "False"
else:
         print "True"
</code></pre>

python