Manifest constants – Visara Master Console Center Scripting Guide User Manual
Page 42

Chapter 3 Script Syntax
Scripting Guide
42
Manifest Constants
Intrinsic manifest constants have been defined to make scripts easier to
read, write, and maintain. Constants are the equivalent to the value they
represent and can be used anywhere in a script. For example, instead of
using:
ALARM( 1)
Use the following:
ALARM( ON)
The second example is clearer because turning an alarm on is intuitive,
while turning an alarm “1” has no meaning. Also, the value representing
a constant may change, but the constant name always remains the same.
Although the following example is a valid numeric expression, it is not the
true intention for the use of manifest constants:
%Num := TRUE + 1
//%Num would contain 2
Note: Because values may change, Visara strongly recommends
using the constants, NOT the values they represent.