setBoolean()

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.


Bash
setBoolean(variableName, value) #Output: Boolean


Examples

Expression parser

Description

Bash
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

Parameter

Input (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