If
Type ID: core.if · Kind: Action · Ports: 1 in, 2 out (true, false)
Evaluates one or more conditions against input values and routes the result to one of two main outputs. Items satisfying the combined condition go to the first (true) output; everything else goes to the second (false) output.
Credentials
None
Properties
| Property | Key | Type | Required | Default | Possible values | Applies when |
|---|---|---|---|---|---|---|
| Conditions | conditions | array | Yes | [] | Array of condition objects ({ value1, operation, value2 }; see supported operators by data type below) | Always |
| Combine | combineOperation | options | Yes | all | all - true only if ALL conditions are met; any - true if ANY condition is met | Always |
Conditions (nested fields)
Each element in conditions is a flat object { value1, operation, value2 }. Supported operators depend on the compared values' data type:
Boolean - value1 (boolean, default false), value2 (boolean, default false), operation:
| Value | Name |
|---|---|
equal | Equal |
notEqual | Not Equal |
Date & Time - value1 (dateTime), value2 (dateTime), operation:
| Value | Name |
|---|---|
after | Occurred After |
before | Occurred Before |
Number - value1 (number, default 0), value2 (number, default 0), operation:
| Value | Name |
|---|---|
smaller | Smaller |
smallerEqual | Smaller or Equal |
equal | Equal |
notEqual | Not Equal |
larger | Larger |
largerEqual | Larger or Equal |
isEmpty | Is Empty |
isNotEmpty | Is Not Empty |
String - value1 (string), value2 (string, also a Regex variant), operation:
| Value | Name |
|---|---|
contains | Contains |
notContains | Not Contains |
endsWith | Ends With |
notEndsWith | Not Ends With |
equal | Equal |
notEqual | Not Equal |
regex | Regex Match |
notRegex | Regex Not Match |
startsWith | Starts With |
notStartsWith | Not Starts With |
isEmpty | Is Empty |
isNotEmpty | Is Not Empty |
Notes
- The matching branch receives a single item,
{ result: true }or{ result: false }. isEmpty/isNotEmptytreatundefined,null,'',NaN, invalid dates, and empty objects as empty.- Numeric operators coerce with
Number(...), string operators withString(...); an unparseable date throws. regexaccepts either a bare pattern or a/pattern/flagsform (flags:g i m u s y).