Concepts - Boolean Values
Boolean Values
The most basic element of logic, either true
or false
.
Booleans are used to represent the outcome of a conditional statement. Provided below are some useful links:
Example
Demonstrates how conditional statements treat booleans.
Output: Value is true!
Example
Inverting a boolean is often very useful. The easiest way to do that is to use the "not" operator.
Output: Boolean has been inverted and is now true!