Here's an interesting bit of info about using If statements with True and False operators. Coding something like:
If variable = FalseIs the same as saying:
If variable = 0Or:
If Not variableBasically, False is equal to zero. True, on the other hand, can represent two different things. If you use it in this fashion:
variable = TrueThen True will equal 1, and that value will be stored in variable. If, however, you use it like this:
If variable = TrueThen True represents any value greater than 0. How you "phrase" your code doesn't usually make a difference to the output, it just makes it more or less compact. So, instead of:
If variable = FalseConsider:
If Not variableAnd instead of:
If variable = TrueConsider:
If variableThat's all. Happy coding!