Visara Master Console Center Scripting Guide Manuel d'utilisateur Page 42

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 262
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 261 262

Commentaires sur ces manuels

Pas de commentaire