Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

...

You could create a Compound Condition with a Timer Condition and World Object Proximity Condition.  If you used the AND operator, it could be defined as "The timer must have run for 3 seconds AND the learner is within 10 meters of a particular location".  Both must be true for a Compound Condition to be true:

...

If you used the OR operator, it would be "The timer must have run for 3 seconds OR the learner is within 10 meters of a particular location".  Either could be true for the Compound Condition to be true:

...

...

View the video full screen on Vimeo at this link.

Info

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

...

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 Scenarioexample, if the learner has to click on the “OK” button of the Welcome Message to proceed.  

My Script has a Compound Condition with two sub-conditions:  Timer and Object Event.  I've set it up to say that "If the learner has not clicked the "ok" button of the Welcome Message AND 10 seconds have passed, then play the timed hint".  Note that the Negate Result box is checked for the Object Event Condition because the button wasn't clicked therefore it wasn't closed.

...

If this Compound Condition evaluates as true, then my timed hint (an audio recording) will play:

...

This is what the learner would experience in the headset if the "OK" button was not clicked:

...

If the learner does click on the "OK" button, we would not want this timed hint to play.  So, I've add a Close Frame resource as this article suggests, and it will remain unplayed.  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:

...


Related Articles

Add Conditions

...