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

  • 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 135
Chapter 5 Script Commands
Scripting Guide 136
INC
Syntax:
INC %Variable
Description:
Adds one to a numeric variable’s value.
Action:
The value in the specified variable is increased by one.
Parameters:
%Variable. Numeric variable. Name of the integer variable to
increment.
Returns:
N/A
Notes:
The INC() command is a shortcut for adding one to itself. The
following two statements are equivalent, but the INC() command
executes much faster:
INC %Var
%Var := %Var + 1
Example:
*START:
%Num := 0 //init to 0
*COUNTING:
REPEAT
//display value to filtered msgs window
LOG( LOG_FLT, “COUNTER=” + STR( %Num))
INC %Num //add 1
UNTIL %Num > 9
See Also:
DEC, SET
Vue de la page 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 261 262

Commentaires sur ces manuels

Pas de commentaire