Authoring Tool

  1. Home
  2. Docs
  3. Authoring Tool
  4. Conditions
  5. Compound Condition

Compound Condition

A Compound Condition is a set of Conditions (subconditions) joined by n-number of homogeneous logical operators. Compound Conditions joined by an AND operator must satisfy all of the subconditions to evaluate to true. Whereas Compound Conditions joined by an OR operator must satisfy any of the subconditions in order to evaluate to true.

For example, you could create a Compound Condition with a Daylight Condition and a Location Proximity Condition. If you used the AND operator, it could be defined as “It must be night AND the user is within 100 meters of a particular location”. Both must be true for the Compound Condition to be true. If you used the OR operator, it would be “It must be night OR the user is within 100 meters of a particular location”. Either could be true for the Compound Condition to be true.

A Compound Condition is a Condition and therefore may be used as a subcondition in another Compound Condition. This allows for arbitrarily complex logic. As a Compound Condition is itself a Condition it also supports the full set of logical operators that Conditions support.

 

Was this article helpful to you? Yes No

How can we help?