User Guide > Scripting > Script Operators > Assignment (=) Operator
Was this helpful?
Assignment (=) Operator
An assignment operator assigns the value of the right operand to the left operand. That is, x = y assigns the value of y to x.
Assignment and Comparison operators may be confusing. For instance, the = Operator is not a Comparison operator. It is an Assignment operator.
For comparisons of x and y, use the == Operator.
Assign (=) Operator
 
Description
Assign the value of the right operand to the left operand
Syntax
operand1 = operand2
Remarks
The = operator is not a comparison operator. It is an assignment operator. For comparisons of x and y, use the == Operator.
Example
The following assigns 0 (zero) to the contents of the ("Items") field.
FieldAt("/SOURCE/R1/Items")= 0
Caution!  The = operator is an assignment operator. Do not confuse it with the == operator, which is a comparison operator. When you want to compare fields and values, use the == Operator.
Last modified date: 12/03/2024