Either with Data Predicate¶
Either with Data Predicate predicate takes a configurable predicate function (a function that returns True or False) from the configuration and uses it to decide which input to return to the output.
The function is applied to the Data element and if it returns True, First is written to the output, otherwise Second is written to the output.
- true : <a>
First, returned if predicate held true
- false : <a>
Second, returned if predicate did not hold true
- data : <b>
Data for the predicate comparison
- output : <a>
Output, First if the predicate holds true otherwise Second
- Either predicate function
Either predicate function