Keyboard
The keyboard input can come from a physically attached keyboard, or through the serial console.
Logical Operators
Logical operators | |
NOT | Logical inverse of the value on the right |
<>
< > <= =< >= => |
Inequality,
less than, greater than, less than or equal to, less than or equal to (alternative version), greater than or equal to, greater than or equal to (alternative version) |
= | Equality |
AND
OR XOR |
Conjunction,
disjunction, exclusive OR. |
The operators AND, OR and XOR are bitwise operators. For example PRINT 3 AND 6 will output 2.
The other logical operations result in the number 0 (zero) for false and 1 for true.
For example the statement PRINT 4 >= 5 will print the number zero on the output and the expression A = 3 > 2 will store +1 in A.
The NOT operator is highest in precedence so it will bind tightly to the next value. For normal use the expression to be negated should be placed in brackets.
For example, IF NOT (A = 3 OR A = 8) THEN …
- 1
- 2
- 3
- …
- 22
- Next Page »