Comparison Operators

Comparison operators are provided to enable you to build comparison statements in your scripts. The comparison operators are displayed when you open the Comparison operators folder in the Commands list box of the Add Script Field or Update Script Field dialogs, as shown in the following image.

Comparison operators are available only for full scripts. The comparison operators are listed in the following table.

Operator Function When selected, provides…
x = y Equals The equals symbol (=)
x < y Less than The less than symbol (<)
x <= y Less than or equal to The less than or equal to symbol (<=)
x > y Greater than The greater than symbol (>)
x >= y Greater than or equal to The greater than or equal to symbol (>=)
x <> y Not equal to The not equal to symbol (<>)
and Logical and The and operator
or Logical or The or operator
not Logical not The not operator