Library Management System
Library
OverviewTask inboxCases
Designer
WorkflowsFormsRulesConnectorsUsers & roles
Service
API & webhooks
Acting as
Acting as
Published v5
Result type

Rule: copy.body.found is true AND (copy.body.status equals "available" OR (copy.body.status equals "on_hold" AND copy.body.heldFor equals {memberCode}))

Supported operators
equalsnot equals>≥<≤betweencontainsdoes not containstarts withends within listnot in listis emptyis not emptymatches regexis trueis falseolder than (days)due within (days)
Test bench
true

Edit sample case data — the rule re-evaluates live.

Compiled jsonLogic
{
  "and": [
    {
      "==": [
        {
          "var": "copy.body.found"
        },
        true
      ]
    },
    {
      "or": [
        {
          "==": [
            {
              "var": "copy.body.status"
            },
            "available"
          ]
        },
        {
          "and": [
            {
              "==": [
                {
                  "var": "copy.body.status"
                },
                "on_hold"
              ]
            },
            {
              "==": [
                {
                  "var": "copy.body.heldFor"
                },
                {
                  "var": "memberCode"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}