Use multiple rules with any (OR logic)

Use multiple rules with any (OR logic)

In this article, you will find the rules document for using multiple rules with any (OR logic).

Before you begin

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

Use multiple rules with any (OR logic)

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

Info
[
  {
    "name": "json1",
    "operator": "any",
    "rules": [
      {
        "conditions": {
          "all": [
            {
              "fact": "duration",
              "operator": "lessThan",
              "value": 2
            }
          ]
        },
        "event": {
          "type": "flagged",
          "params": {
            "reason": "Event is shorter than 2 seconds"
          }
        }
      },
      {
        "conditions": {
          "all": [
            {
              "fact": "labelCount",
              "operator": "equal",
              "value": 0
            }
          ]
        },
        "event": {
          "type": "flagged",
          "params": {
            "reason": "Event has no labels"
          }
        }
      }
    ]
  }
]

    • Related Articles

    • 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) Note: ...
    • Multiple rules for a template

      In this article, you will learn how to write multiple rules for a template. Before you begin To learn how to access the Rules page and view some rule examples for a template in SPAN sports performance analysis platform, refer to this article. ...
    • Why rules?

      When tagging scales or even when it doesn't - Quality can drift In the early stages of a tagging workflow, things feel controlled. Whether it's a single analyst or a small team, the logic is clear and the volume is manageable. But over time - as more ...
    • Coding tips for writing rules

      In this article, you will learn about the coding tips for writing rules. Before you begin To learn why rules are important in SPAN sports performance analysis platform, refer to this article. Coding tips for writing rules The coding tips for rules in ...
    • Access rules page

      In this article, you will learn how to access the Rules page of a template. Before you begin To learn how to create and open a template in SPAN sports performance analysis platform, refer to this article. Access rules page After opening the template ...