My guess is that enabled is a boolean variable, and 0 is an integer expression, so check to see if it equals false instead of 0, but I can't be sure because you didn't show how you created the variable.
__________________
No longer around. Thanks your support, everyone! As always: