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

This value will be returned by the getBoolean() function, when used within the same expression.


setBoolean(variableName, value) #Output: Boolean



Expression parserDescription


setBoolean("myBoolean",true)


This example creates the variable "myBoolean" and sets the boolean value true.



Parameters used in this function

ParameterInput (data type)Description
variableName

A text for the variable name.
value

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



This function returns a 


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





Status
Tech review

Style guide




Short description

Creates a variable to temporarily store a boolean value

Output

Available since

Label