Use multiple rules with all (AND logic across rules)

Use multiple rules with all (AND logic across rules)

In this article, you will find the rules document for using multiple rules with all (AND logic across rules).

Before you begin

To learn how to access the rules page, refer to this article.

Use multiple rules with all (AND logic across rules)

Notes
Note: This is a complete rules document. In the rules page, copy this JSON into the editor.

Info
[
  {
    "name": "json1",
    "operator": "all",
    "rules": [
      {
        "conditions": {
          "all": [
            {
              "fact": "startTime",
              "operator": "greaterThanInclusive",
              "value": 0
            },
            {
              "fact": "endTime",
              "operator": "lessThanInclusive",
              "value": 60
            }
          ]
        },
        "event": {
          "type": "flagged",
          "params": {
            "reason": "Event is in the first minute"
          }
        }
      },
      {
        "conditions": {
          "all": [
            {
              "fact": "primaryCategory",
              "operator": "equal",
              "value": "Interview"
            }
          ]
        },
        "event": {
          "type": "flagged",
          "params": {
            "reason": "Event is an Interview"
          }
        }
      }
    ]
  }
]