variableThe behavior variables define the state of the behavior.
They are sometime referred to as state variables.
variable ::= (type identifier = expression
| data-type identifier = data-expression
| data-type identifier) ";"
where type and expression must match.
For example:
bool idle = true;
Note: The
expressionused in the definition of a behavior variable must be a constant expression, i.e.: noaction,callorvariable-reference is allowed.