Increment Variable
Verb: incrementVar
Available from: <Standard>
Increments a numeric variable.
Syntax
incrementVar --number(Numeric)
Inputs
Script | Designer | Required | AcceptedTypes | Description |
---|---|---|---|---|
--number | Numeric Variable | Required | Number | Numeric variable to increment. |
Example
The variable "numericVariable" is set to 0 and used in a loop While, which increments it with the Increment Variable command while the given condition is satisfied.
defVar --name numericVariable --type Numeric --value 0
while --left "${numericVariable}" --operator "Less_Than" --right 10
incrementVar --number ${numericVariable}
logMessage --message "${numericVariable}" --type "Info"
endWhile