If I were to set a variable as False, it is read as being equal to zero. Is there any way I can carry out a check to see if the variable if actually False or if it's the number 0.
Something like:
Spam = False if Spam == False and not Spam == 0: do something I'm getting the feeling this isn't possible; but I wanted to double check.
Side note: In the future would it be better to assign "None" rather than "False" when a variable could be zero? For the current code I don't want to have to rework the whole script with try and excepts, so I'll change False to -1 (not a viable value for the situation). But for future reference, I assume the None method is more Pythonic?
Help as always is appreciated and if any more details are needed, just ask.
Spam, that it could take either a Boolean or an integer value?