Variable Element

The variable element allows you to get and set a variable value during runtime, similar to a variable in C. This allows for runtime storage of data, and also facilitates sharing of values between elements that aren’t otherwise directly connected.

The variable element is located in the Element Toolbox within Studio’s Embedded View.

Element Icon
Variable Element

Properties

The following properties can be changed for the variable element:

Name

The name of the element.

Initial Value

The initial value of the element

Initial Data Type

The data type of the initial value of the element

Triggers

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

Triggered

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

Value Set

Execute an event when the element’s value is set. The most recently set value is passed as the input to this trigger.

Value Retrieved

Execute an event when the element’s value is returned.

Abilities

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

Trigger

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

Set Value

Store the input value.

Get Value

Return the input value.