Condition
Overview
The Condition Component evaluates expressions and directs data to either the true
or false
output port based on the result. It supports logical conditions using multiple operators and can process complex logical groupings.
Usage
Input Parameters
expression
object
A structured condition with logical operators (AND
, OR
) and comparison rules.
Supported Operators
=
Checks if two values are equal.
!=
Checks if two values are not equal.
>
Checks if a value is greater than another.
>=
Checks if a value is greater than or equal to another.
<
Checks if a value is less than another.
<=
Checks if a value is less than or equal to another.
%
Checks if a number is divisible by another (modulo).
empty
Checks if a value is empty.
notEmpty
Checks if a value is not empty.
contains
Checks if a value contains another value.
range
Checks if a value falls within a specified range.
regex
Validates if a value matches a given regular expression.
Output Ports
true
Fires if the condition evaluates to true
.
false
Fires if the condition evaluates to false
.
Instructions
Define Conditions
Create conditions using logical grouping (
AND
,OR
).Choose an operator and provide a comparison value.
Evaluate Inputs
Inputs are compared using selected operators.
Logical groups (
AND
,OR
) allow complex expressions.
Direct Output
If the condition evaluates to
true
, data is sent to thetrue
port.If the condition evaluates to
false
, data is sent to thefalse
port.
Notes
Logical Groups: Conditions can be grouped using
AND
andOR
for flexible logic handling.Range Handling: Use
rangeMin
andrangeMax
to check if a value is within a range.Regex Support: Allows pattern matching for advanced validation.
Last updated
Was this helpful?