Boolean
- True or False
- Used mainly for conditional statements
Logical operators
- are used to make ‘compound’ Boolean statements
A AND B
- In Java/Processing: &&
- In AP: AND
- ONLY True when both A AND B are True
- ONLY False when at least 1, A or B are False
OR
- In Java/Processing: ||
- In AP: OR
- ONLY True when at least 1, A OR B are True
- ONLY False when both A and B are False
Example-Pseudocode
[x←10]
{
REPEAT UNTIL[≥10]
x←[x+1]