[Tutorial] Creating cleaner and more read-able code
#10

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)