You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 16 Next »

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.

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

Parameters used in this function

ParameterInput (data type)Description
variableName

TEXT

A text for the variable name.
value

JWT EXPRESSION

A JWT expression, which must bereturn 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.