This function creates a variable for storing a boolean value, and directly setsvalue.

This value will be immediately returned and can be accessed by the getBoolean() function afterwards within the same expression.

Syntax
setBoolean(variableName, value) #Output: Boolean
Examples
Expression parserDescription
setBoolean("myBoolean",true)
This example creates the variable "myBoolean", sets the boolean value true and returns it accordingly.
Additional information

Parameters used in this function

ParameterInput (data type)Description
variableName

TEXT

A text for the variable name.
value

BOOLEAN

A JWT expression, which must return a boolean value of true or false.
Output

This function returns a BOOLEAN

To retrieve the value stored in the variable, use the function getBoolean() within the same expression.


Use cases and examples