This function creates a variable for storing a boolean value, and directly sets a value.
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
|
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 |
|---|---|---|
|
|
text |
A text for the variable name. |
|
|
BOOLEAN |
A JWT expression, which must return a boolean value of |
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
| Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
|---|