Stateflow    

Assignment Operations

The following assignment operations are supported in Stateflow action language.

Example
Description
a = expression
Simple assignment
a := expression
Used primarily with fixed-point numbers. See Assignment Operator := for a detailed description.
a += expression

Equivalent to a = a + expression

a -= expression

Equivalent to a = a - expression

a *= expression

Equivalent to a = a * expression

a /= expression

Equivalent to a = a / expression

The following assignment operations are supported in Stateflow action language when Enable C-like bit operations is selected in the properties dialog for the chart. See Specifying Chart Properties.

Example
Description
a |= expression
Equivalent to a = a | expression (bit operation). See operation a | b in Binary and Bitwise Operations.
a &= expression
Equivalent to a = a & expression (bit operation). See operation a & b in Binary and Bitwise Operations.
a ^= expression
Equivalent to a = a ^ expression (bit operation). See operation a ^ b in Binary and Bitwise Operations.


  Unary Operations Pointer and Address Operations