The macro language supports the following arithmetic and relational operators:


Arithmetic


+        Addition (for numeric expressions, concatenation for strings)

-        Subtraction

*        Multiplication

/        Division

\        Integer Division

^        Exponentiation

&        String concatenation (also see + above)


Relational


       AND        And relationship

       OR        Or relationship

       NOT        Negation

       <        Less than

       <=        Less than or Equal

       >        Greater than

       >=        Greater than or Equal

       <>        Not equal

       =        Equal


Compound Numeric Operators


       +=        Add variable value to right expression before assigning result back to variable

       -=        Subtract variable value to right expression before assigning result back to variabl

       *=        Multiply variable value to right expression before assigning result back to variable

       /=        Divide (floating point version) variable by right expression before assigning result back to variable

       \=        Divide (integer version) variable by right expression before assigning result back to variable



Compound String Operators


       +=        Add variable value to right expression before assigning result back to variable

       &=        Add variable value to right expression before assigning result back to variable

       .=        Add variable value to right expression before assigning result back to variable


Implicit Assignment Operators


Implicit assignment takes place when a statement starts with a variable name followed by an operator.



For example:


B + 2


is considered as an implicit assignment to variable B and is equivalent the one of the below statement statements:


B = B + 2


B += 2


Implicit assignment is actually supported only for scalar numeric variables.


Supported operators are: + - * / \



Created with the Personal Edition of HelpNDoc: Easily create HTML Help documents