If-Else Condition
The If-Else Condition node evaluates a script that returns true or false, routing the input to the corresponding output port.
Example: Random Boolean
var random = RandomUtil.create();
return random.nextBoolean();
Example: Date Comparison
var christmasDay = LocalDate.of(2023, 12, 25);
var today = LocalDate.now();
if (today.isBefore(christmasDay)) {
return true;
} else {
return false;
}