Previous: return
, Up: Imperative Statements [Contents][Index]
variable
Defining a local variable is syntactically identical to a behavior variable:
variable ::= (type identifier = expression | data-type identifier = data-expression | data-type identifier) ";"
For example:
bool b = true; bool not_idle = !idle; bool c = negate (idle);