Boolean

From QB64 Phoenix Edition Wiki
Revision as of 18:49, 18 April 2022 by SMcNeill (talk | contribs)
Jump to navigation Jump to search

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!


Template:RelationalTable