Boolean expressions

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.
Subscription shortcut
You can reference boolean arrays elements (see new-array) by using subscription operator ([]), for instance:
new-array barr type boolean
write-array barr key 0 value true
set-bool bv = !barr[0]

See also
Booleans
boolean-expressions  
set-bool  
See all
documentation


Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.