I'm sure NextGen can do better but:
The Boolean data type contains two-state values such as true/false, yes/no, or on/off.
For example, if you need to check whether a key is pressed or not you can declare a boolean variable. If the boolen variable is true, meaning the key has been pressed, it will do something. If not, it will do something else or nothing at all.