Set Variable
Writes a value to the selected variable. The write mode and the value field change with the variable type.
Variable
Select the variable to write to. Variables of every type can be selected.
Write Mode
Select the operation applied when writing. The default is None, and the available options depend on the variable type.
| Variable type | Write Mode | Description |
|---|---|---|
| Digital | None / Invert | Invert flips the current value (true → false). When Invert is selected, the Value field is hidden. |
| Number | None / Add / Subtract / Multiply / Divide | Applies the arithmetic operation to the current value with the input value (for example, 5 + 3 = 8). |
| Time, Duration | None / Add / Subtract | Adds the input value to, or subtracts it from, the current value. |
| Text, Byte Array | None / Append | Appends the input value before or after the current value (for example, "ABC" with "DEFG" appended after → "ABCDEFG"). |
| Date, Color | (no option) | Writes the input value as is. |
Insert Position
Select whether to append the input value Before or After (default) the current value. Displayed only when Write Mode is Append.
Value
Enter the value to write. The field changes to the input format of the variable type (digital, number, text, date, time, duration, byte array, or color).