Next: Variable Examples, Up: Using Local Variables [Contents][Index]
Variables are named, have a type, and an initial value, which is an expression:
variableType variableName = initialValue;
Supported types are:
To ensure that an integer variable falls within a finite set (in order to have a limited range of possible paths / states in the system), use a type definition, e.g. subint myInt {0..10}.