@servicenow/sdk - v4.7.0
    Preparing search index...

    Type Alias DecisionCondition

    DecisionCondition:
        | {
            field: string
            | SkillInputRef
            | ToolOutputRef;
            operator: "is" | "is not";
            value: string;
        }
        | { script: string }

    Decision condition types for branching logic Supports field-based conditions and scripts

    Field accepts:

    • String literal: 'inputName.field' for nested field access (e.g., 'glide_record_input.active')
    • Skill input reference: t.input.fieldName (returns SkillInputRef)
    • Tool output reference: tool.output (returns ToolOutputRef)

    Type Declaration

    • {
          field: string | SkillInputRef | ToolOutputRef;
          operator: "is" | "is not";
          value: string;
      }
      • field: string | SkillInputRef | ToolOutputRef

        Field to evaluate — can be:

        • String literal: 'inputName.field' for nested field access
        • Skill input reference: t.input.fieldName (returns SkillInputRef)
        • Tool output reference: tool.output (returns ToolOutputRef)
      • operator: "is" | "is not"
      • value: string
    • { script: string }