In the past example, you were checking if two numbers are equal. The equal sign may look familiar from math class, but in code it has a slightly different application! The sign is an example of a comparator. Comparators can be used inside conditions to compare values. If the statement is true, the statement below it will execute. These are comparators in Blockly (they will look different in Python, but don’t worry about that yet!):
- > Greater Than
- < Less Than
- ≥ Greater Than or Equal To
- ≤ Less Than or Equal To
- = Equal To
- ≠ Not Equal To