Set bool

Purpose: Set value of a boolean variable.

 set-bool <var> [ = <boolean> ] [ process-scope ]

 set-bool <var> from-condition <condition>

Without "from-condition" clause
If "from-condition" clause is not used, boolean variable <var> is either assigned value <boolean> with "=" clause, or it is assigned "false" if equal clause ("=") is omitted.

If "process-scope" clause is used, then boolean is of process scope, meaning its value will persist from one request to another for the life of the process.
With "from-condition" clause
If "from-condition" clause is not used, then <condition> is evaluated, and if true, then "true" value is assigned to <var>, otherwise "false" is assigned. See if-true for more on <condition>.
Examples
Assign "true" value to boolean variable "my_bool":
 set-bool my_bool = true

Assign boolean value based on condition:
 ...
 set-bool my_bool from-condition num1 equal num2 or str1 not-equal str2

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.