boolean-expressions
Golf documentation (booleans)
- Provided by: golf (Version: 601.4.41-1)
- Report a bug
Golf documentation (booleans)
A boolean expression uses operators "!" (not), "&&" (and) and "||" (or), as well as parenthesis (). For example:
set-bool b1 = ! (b2 && b3) || b4
You can use boolean expressions anywhere a boolean is expected as an input to any statement.
You can use boolean variables as well as constants such as "true" and "false" in boolean expressions.
Booleans
boolean-expressions set-bool See all documentation