Condition Behaviors
Content List
- Control Condition Behaviors
- Check Animation State
- Check Enter or Exit
- Check Interval Switch
- Check Selection ID
- Check Control State
- Check Timer
- Check changed Value
- Check processed Value
- Check Video State
- Check Animation State
- Input Condition Behaviors
- Check Click
- Check Drag Drop
- Check Hover
- Check Key Input
- Check Pressed
- Swipe Gesture Condition
- Transform Gesture
- Check Click
- Logic Condition Behaviors
- Check Logic Condition
- Check Not Condition
- Check Logic Condition
- Scroll Condition Behaviors
- Check Scroll Condition
- Check Scroll Condition
- Check Culture Change
Control Condition Behaviors
Check Animation State
Description
Checks the state of an AnimationEvent received from an 'Configure and Play Animation Behavior'.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| AnimationState | AnimationState::Enum | State of the AnimationEvent which fulfills the Condition. |
When this condition is used in a global state machine, the event dispatch strategy of 'Configure and Play Animation Behavior' must be set to bubble or tunnel.
Check Enter or Exit
Description
Expects a EnterExit Event (generated by Edit Text Behavior) and returns either a positive or negative response.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| EnterOrExit | Bool | True means Enter, false means Exit. |
Check Interval Switch
Description
Expects an On or Off value from a TriggerBehavior and returns either a positive or negative response.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| VisualizationState | IntervalSwitchState::Enum | If the value (received by the IntervalSwitchConditionBehavior) matches the Visualization State set, it will return a positive response. |
Description
Compares the ID from the ChangeSelectionEvent with the ID from its own Control.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| SelectionCondition | SelectionConditionEnum::Enum | The condition that the ID from the ChangeSelectionEvent has to fulfill. |
Check Control State
Description
Expects a State Event (generated by Control State Behavior) and returns either a positive or negative response.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| State | ControlStateEnum::Enum | State which has to be checked. |
| StateCondition | StateConditionEnum::Enum | The condition the state has to fulfill. |
Check Timer
See also
Description
Checks if a Timer reached a certain value.
Common Properties
This behavior does not have any configurable properties.
Check changed Value
Description
Evaluates the configured value condition. To be used within a trigger behavior to trigger a certain action if the value matches the condition.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| ConditionOperator | Operators::Enum | The condition operator. |
| ConditionValue | FeatStd::Variant | The condition value. |
Check processed Value
Description
Checks whether a Value meets certain condition.
The following values can take part in the comparison, depending on the Operation Mode selected:
- Value sent in Process Value
- External value from ValueBehavior
- Value set directly in this ValueConditionBehavior
Example Usage
Common Properties
| Property Name | Type | Description |
|---|---|---|
| OperationMode | Operators::Enum | Operation mode of behavior, defining which values should be compared: processed value with condition value (default), processed value with external value or external value with condition value |
| ConditionOperator | Operators::Enum | The condition operator. |
| ConditionValue | FeatStd::Variant | The condition value. |
| ValueBehavior | CgiStudioControl::ValueBehavior * | Value behavior to be checked for changes if OperationMode requires external value. |
Check Video State
Description
Expects a VideoState event (generated by Video Stream Behavior) and evaluates the configured state condition. To be used within a trigger behavior.
Common Properties
| Property Name | Type | Description |
|---|---|---|
| VideoState | VideoState::Enum | State of the VideoEvent which fulfills the Condition. |