User`s guide
Operators
The following sections discuss the valid operators.
Assignment Operator
The equal sign (=) is used to assign a value to a numeric or string variable. The variable being
assigned a value must appear by itself on the left side of the equal sign. The right side of the
equal sign can contain any variable or value of the same data type as the left side, or any
expression that resolves to the same data type as the left side. Any variables used on the
right side of an assignment operator must have been previously initialized.
Location variables require the use of the SET instruction for a valid assignment statement.
The instruction:
loc_var1 = loc_var2
is unacceptable for location and precision-point variables.
Mathematical Operators
V+ uses the standard mathematical operators shown in the following table.
Symbol Function
+ addition
- subtraction or unary minus
* multiplication
/ division
MOD modular (remainder) division
Mathematical Operators
Relational Operators
Relational operators are used in expressions that yield a Boolean value. The resolution of an
expression containing a relational operator is always -1 (true) or 0 (false) and tells you if the
specific relation stated in the expression is true or false. The most common use of relational
expressions is with the control structures.
V+ uses the standard relational operators shown in the following table.
Operators
(Undefined variable: Primary.Product_Name_V)Language User's Guide, version
17.x
Page 111










