Stateflow | ![]() ![]() |
Conditions
You sometimes want transitions or actions associated with transitions to take place only if a certain condition is true. Conditions are placed within [ ]. These are some guidelines for defining conditions:
In
(state_name)
condition function that is evaluated as true when the state specified as the argument is active. The full state name, including any ancestor states, must be specified to avoid ambiguity.Note A chart cannot use the In condition function to trigger actions based on the activity of states in other charts.
![]() | Directed Event Broadcasting | Time Symbol | ![]() |