Logic
Comparisons and true/false values, mostly for the slot of an if block.
not [true/false]
Turns true into false and false into true.
| Slot | Takes | What it is for |
|---|---|---|
| 1 | true/false | The true or false value to flip. |
Gives back: true/false
Script: not a
[any value] like [any value]
True when both sides hold the same value. Numbers are compared by value, and text that holds a number counts as that number, so 5, 5.0 and "5" are all alike. Values of different kinds are never alike: a game mode is never like the text "CREATIVE".
| Slot | Takes | What it is for |
|---|---|---|
| 1 | any value | The first value. |
| 2 | any value | The value to compare it with. |
Gives back: true/false
Script: a == b
[any value] not like [any value]
True when the two sides are not alike. The opposite of like.
| Slot | Takes | What it is for |
|---|---|---|
| 1 | any value | The first value. |
| 2 | any value | The value to compare it with. |
Gives back: true/false
Script: a != b
[number] smaller than [number]
True when the first number is smaller than the second. Both sides must be numbers, or text holding a number, or the script stops with an error.
| Slot | Takes | What it is for |
|---|---|---|
| 1 | number | The first number. |
| 2 | number | The number to compare it with. |
Gives back: true/false
Script: a < b
[number] larger than [number]
True when the first number is larger than the second. Both sides must be numbers, or text holding a number, or the script stops with an error.
| Slot | Takes | What it is for |
|---|---|---|
| 1 | number | The first number. |
| 2 | number | The number to compare it with. |
Gives back: true/false
Script: a > b
[number] smaller than or equal to [number]
True when the first number is smaller than or equal to the second. Both sides must be numbers, or text holding a number, or the script stops with an error.
| Slot | Takes | What it is for |
|---|---|---|
| 1 | number | The first number. |
| 2 | number | The number to compare it with. |
Gives back: true/false
Script: a <= b
[number] larger than or equal to [number]
True when the first number is larger than or equal to the second. Both sides must be numbers, or text holding a number, or the script stops with an error.
| Slot | Takes | What it is for |
|---|---|---|
| 1 | number | The first number. |
| 2 | number | The number to compare it with. |
Gives back: true/false
Script: a >= b
[true/false] and [true/false]
True only when both sides are true.
| Slot | Takes | What it is for |
|---|---|---|
| 1 | true/false | The first condition. |
| 2 | true/false | The second condition. |
Gives back: true/false
Script: a and b
[true/false] or [true/false]
True when at least one side is true.
| Slot | Takes | What it is for |
|---|---|---|
| 1 | true/false | The first condition. |
| 2 | true/false | The second condition. |
Gives back: true/false
Script: a or b