Value assignments and operators
- Last UpdatedJul 23, 2024
- 1 minute read
In a script, you use value assignments to write values to a tag. The syntax for a value assignment is as follows:
Tagname = ValueExpression;
When this statement is executed, ValueExpression is written to the tag referred to by Tagname. ValueExpression can be any valid expression whose data type matches the tag data type. Value expressions can include literal values, tag references, and function calls, all linked together by suitable operators.
See Supported operators.