Operators
Operators built into the twinBASIC language. They are understood by the compiler and are not declared or defined in the runtime library.
Warning
Work in Progress
Arithmetic
- Mod – divides two numbers and returns only the remainder
Logical and Bitwise
Both operands are always evaluated.
- And – logical or bitwise conjunction
- Or – logical or bitwise disjunction
- Not – logical or bitwise negation
Logical (Short-Circuit)
The right operand is evaluated only when the left operand does not already determine the result.
- AndAlso – (twinBASIC) short-circuit conjunction; evaluates the right operand only if the left is True
- OrElse – (twinBASIC) short-circuit disjunction; evaluates the right operand only if the left is False