Boolean: Difference between revisions
Jump to navigation
Jump to search
(Created page with "foo") |
No edit summary |
||
Line 1: | Line 1: | ||
'''Boolean''' statements are numerical evaluations that return True (-1 or NOT 0) or False (0) values that can be used in other calculations. | |||
:::::::''Basic Returns:'' | |||
* True evaluations return -1. [[NOT]] 0 = -1 in Basic. Can be used to increment a value. | |||
* For positive True results, subtract it, multiply it by a negative value or use [[ABS]]. | |||
* False evaluations return 0. Watch out for [[ERROR Codes|"Division by 0" errors]]! | |||
{{Template:RelationalTable}} |
Revision as of 18:49, 18 April 2022
Boolean statements are numerical evaluations that return True (-1 or NOT 0) or False (0) values that can be used in other calculations.
- Basic Returns:
- True evaluations return -1. NOT 0 = -1 in Basic. Can be used to increment a value.
- For positive True results, subtract it, multiply it by a negative value or use ABS.
- False evaluations return 0. Watch out for "Division by 0" errors!