Compound Condition
For an overview of Conditions, click here.
Deep Learning on Conditions is found in Motive Academy. Click here to see the course this lesson is in.
Overview
A Compound Condition is a set of sub-conditions joined by operators.
Compound Conditions joined by an AND operator must satisfy all of the sub-conditions to evaluate to true. Whereas Compound Conditions joined by an OR operator must satisfy any of the sub-conditions in order to evaluate to true.
Required Fields
Field Name | Description |
---|---|
Operator | The operator joins the sub-conditions together. AND = all of the sub-conditions must be satisfied to be true. OR = any of the sub-conditions satisfied to be true. |
Conditions | Two or more sub-conditions added together to create the Compound Condition. |
Optional Fields
Field Name | Description |
---|---|
Negate Result | If selected, the truth value will be the opposite for this Condition. That is, when it would be normally true it will be false, and when it would normally be false it will be true. For a detailed explanation of evaluating Compound Conditions with Negate Results, click here. |
Create a Compound Condition
The quickest way to create a Compound Condition is to simply drag and drop two or more Conditions or Events into the Conditions frame and then make all of your selections:
View the video full screen on Vimeo at this link.
Note About Timer Conditions in a Compound Condition
The timer starts as soon as the frame opens. So often times the timer has evaluated to true way before the other Condition is true. Therefore it may not have the effect you expect.
Evaluating Compound Conditions with Negate Result
Step 1: Add Sub-Conditions (Author)
Add two or more sub-conditions and determine which ones require the Negate Result option checked. Some Conditions don't have a Negate Result option because it doesn't make sense for the Condition or the Condition itself allows for a negative result.
In this example, I've chosen to Negate Results for Sub-Condition 2, but not 1. Sub-Condition 3 does not have this option available:
Step 2: Sub-Conditions Evaluated (Storyflow)
Based on the activity in the VR Scenario, Storyflow will determine if each sub-condition evaluates to True or False and moves those results up to the Compound Condition level:
Step 3: Compound Condition Evaluated (Storyflow)
The Compound Condition will then be evaluated to True or False based on selections made to the Compound Condition (operator, negate result) and the results from the sub-conditions (described in Step 2):
Example in Action
In this example, if the learner doesn’t donn their personal protective gear before entering the work area, they will see a warning.
This scripting says: If the learner is in the Right Work Area AND it is Not True that the Put on PPE event has fired, THEN the event “Forgot PPE before entering the lab” is fired.
In the next child frame the warning is displayed: