14.02.2015, 13:56
(
Last edited by AndySedeyn; 20/02/2015 at 09:19 AM.
)
Correct me if I'm wrong.
Your PM variable can, logically, have two values: 0 (for disabled) and 1 (for enabled). Hypothetically speaking, I can then assign it to any value higher than 1 or lower than 0 at any given moment. I try to define variables like this as a Boolean when possible since a Boolean can have two values: true or false.
Your PM variable can, logically, have two values: 0 (for disabled) and 1 (for enabled). Hypothetically speaking, I can then assign it to any value higher than 1 or lower than 0 at any given moment. I try to define variables like this as a Boolean when possible since a Boolean can have two values: true or false.