Inc
General Operation Statement
The Inc statement adds a specified amount to a Variable or Attribute every time an Entity enters the Location or Route where the statement is defined.
Syntax
Inc <name>{, <expression>}
Syntax Examples
Inc Var1
Inc Attr2, 5+Var1
Parameters
<name>
The name of any variable, array element, or attribute.
{, <expression>}
The amount to increment the value. If this expression is omitted, the value increments by one. This can be a negative number.
Parameters Examples
The following example increments the variable Var1 whenever an Entity enters the Truck Location.
Inc Var1