function advancedSetup () {
    const conditions = {
      any: [
        {
          fact: 'age',
          operator: 'greaterThanInclusive',
          value: 21
        },
        {
          fact: 'qualified',
          operator: 'equal',
          value: true
        },
        {
          all: [
            {
              fact: 'zipCode',
              operator: 'in',
              value: [80211, 80403]
            },
            {
              fact: 'gender',
              operator: 'notEqual',
              value: 'female'
            }
          ]
        }
      ]
    }
    engine = engineFactory()
    const ruleOptions = { conditions, event, priority: 100 }
    const determineDrinkingAgeRule = factories.rule(ruleOptions)
    engine.addRule(determineDrinkingAgeRule)
    // rule will succeed because of 'any'
    engine.addFact('age', 10) // age fails
    engine.addFact('qualified', false) // qualified fails.
    engine.addFact('zipCode', 80403) // zipCode succeeds
    engine.addFact('gender', 'male') // gender succeeds
  }
sets up a complex rule with nested conditions