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

Rule: loanInfo.body.found is true AND loanInfo.body.memberCode equals {memberCode} AND loanInfo.body.renewalsLeft > 0 AND loanInfo.body.overdueDays ≤ 0 AND loanInfo.body.reservedByOthers is false

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
false

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

Compiled jsonLogic
{
  "and": [
    {
      "==": [
        {
          "var": "loanInfo.body.found"
        },
        true
      ]
    },
    {
      "==": [
        {
          "var": "loanInfo.body.memberCode"
        },
        {
          "var": "memberCode"
        }
      ]
    },
    {
      ">": [
        {
          "var": "loanInfo.body.renewalsLeft"
        },
        0
      ]
    },
    {
      "<=": [
        {
          "var": "loanInfo.body.overdueDays"
        },
        0
      ]
    },
    {
      "!": {
        "==": [
          {
            "var": "loanInfo.body.reservedByOthers"
          },
          true
        ]
      }
    }
  ]
}