If
Type ID: core.if · Kind: Action · Trace: CHAIN
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 | Shown when |
|---|---|---|---|---|---|---|
| Conditions | conditions | array | Yes | {} | A collection of condition rules, grouped by data type (see 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 condition is defined under one of four data-type groups. Every group has value1, operation, and value2.
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 node always emits two outputs in order
[true, false]. The matching branch receives a single item{ result: true }or{ result: false }. - Comparisons use strict equality for
equal/notEqual. Numeric operators coerce viaNumber(...), string operators coerce viaString(...), and date operators parse strings, numbers, orDateobjects into milliseconds (an unparseable date throws). isEmptytreatsundefined,null,'',NaN, invalid dates, and empty objects as empty;isNotEmptyis its inverse.regexaccepts either a bare pattern or a/pattern/flagsform. Supported flags:g i m u s y.- Evaluation short-circuits: with
anyit stops at the first match, withallit stops at the first failure. - Parameters are resolved through the resolver engine, so expressions are supported.