Last updated
Was this helpful?
Last updated
Was this helpful?
The condition step determines the next step in the action by evaluating a JavaScript expression. Return true
to execute the left-hand side step, or false
to execute the right-hand side step.
The following built-in variables are available:
While {{data}}
and {{error}}
are specific to a particular step, {{params}}
is available in all steps.
Using variables:
If, at some point, variable's value is null
or undefined
, an optional chaining operator ?.
can be used to access a specific key.
For example:
Execute the true
step if the data
array has some items:
Execute the true
step if the component's value is set:
Checking user role:
Checking multiple user roles:
Checking that at least one user role is present: