GOLF(2gg)

NAME
set-bool - (booleans)

PURPOSE
Set value of a boolean variable.

SYNTAX

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

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

DESCRIPTION

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