Visara Master Console Center Scripting Guide Manuale Utente Pagina 42

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 262
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la 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.
Vedere la pagina 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 261 262

Commenti su questo manuale

Nessun commento