Expression Element

The expression element is used to execute complex evaluations and comparisons of inputs and outputs.

The expression element is located in the Element Toolbox within Studio’s Application tab and Cloud tab.

Element Icon
Expression Element

Properties

The following properties can be changed for the expression element:

Name

The name of the element.

Expression

Expression to evaluate. This includes access to a value data field that allows you to add values to an internal variable field.

Triggers

The following triggers are available to execute events from within the expression element:

Triggered

Execute an event when the source element connected to the expression triggers.

Expression True

Execute an event when the expression evaluated is true.

Expression False

Execute an event when the expression evaluated is false.

Evaluated

Execute an event when the expression is evaluated.

Abilities

The following abilities are available for the expression element when its source element triggers:

Trigger

Trigger the element(s) that follow the expression element.

Evaluate

Evaluate the expression.

Set Value

Add a single value to the values variable. This object can be used within the code of the expression.

Set Value Arguments    
Name Type Description
Value Object An individual value.

Set Values

Add a mapping of value pairs in an object to the values variable in the expression.

Set Value Arguments      
Name Type Description Example
Values Object An pair of values. Add a with the value of 54 to the values you would enter into this: {"a":54}.

Assign Values

This will assign into the expressions values the object passed to this ability.

For example if you have the following the in the values store for the expression `{a:1, b:2, c:3}` and then where to assign values `{a:4, d:5}` the results would be that the expression values store containes `{a:4, b:2, c:3, d:5}`.