Previous Topic

Next Topic

Book Contents

Book Index

Order of Operations

The Control-M/Analyzer order of operations is the standard natural order of arithmetic expression evaluation.

Table 145 Control-M/Analyzer Order of Operations

Expression

Description

%%

AutoEdit variables have the highest priority during resolution.

( )

Parentheses can be used to override the natural order of operations.

//

Two Control-M/Analyzer variables are concatenated.

Functions

Control-M/Analyzer functions and their respective input expressions are resolved.

* , /

Multiplication and division, evaluated from left to right, are resolved.

+ , –

Addition and subtraction, evaluated from left to right, are resolved.

=, Ø \- =, >, >=, <, <=,
EQ, NE, GT, GE,
LT, LE, CEQ, CNE,
CGT, CGE, CLT, CLE

Comparison operators are resolved.

AND, OR

Boolean operators are resolved last.

If a function receives an expression as input, that expression is evaluated (according to the above order of operations) independently before the original function is evaluated.

Parent Topic

Expressions