Visara Master Console Center Scripting Guide Manual de usuario Pagina 42

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 262
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 41
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.
Vista de pagina 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 261 262

Comentarios a estos manuales

Sin comentarios