Next: call
, Previous: action
, Up: Imperative Statements [Contents][Index]
assign
The value of a previously defined variable can be updated using an
assign
:
assign ::= variable "=" expression ";"
For example:
idle = true; idle = !b; idle = negate (idle);
where b
and idle
are variables of type bool
,
negate
is a function with one bool
parameter and
return-type bool
(see See call
).