Dec
General Action Statement
The Dec statement subtracts a specified amount from a Variable or an Attribute every time an Entity enters the Location or Route where the statement is defined.
Syntax
Dec <name>{, <expression>}
Examples
Dec Var1
Dec Attr1, 5
Parameters
<name>
Any Variable, array element, or Attribute.
<expression>
The amount to subtract from a Variable or Attribute every time the statement is executed. If no number is specified, the Dec statement defaults to 1.
Example
The following example decrements the Variable Var1 by 1 each time an Entity enters the Truck Location.
Dec Var1