IsIn Function
- Updated2023-02-21
- 2 minute(s) read
IsIn Function
Owning Palette: Statechart Communication Functions
Requires: Statechart Module
Determines whether the specified state is active. An active state is one that a statechart is currently in. You can use this function in either a guard, an action, or a subVI that a guard or action calls.
Use this function to determine the active substate of an orthogonal region or a different statechart.

IsIn Details
You can configure the icon style of this function to display the custom icon of the statechart diagram and/or the name or path of the specified state.
In determining whether a state is active, this function analyzes the state vector, which is the path of states and regions that contain the state. For example, consider the following figure:
Consider a situation where you want to check State 4 in State 1, but not State 4 in State 3. In this situation, the function takes into account the regions and states that contain the State 4 you specify.


