Visara Master Console Center Scripting Guide Manual do Utilizador Página 42

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 262
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 261 262

Comentários a estes Manuais

Sem comentários