Either with Data Predicate¶
-
class
node_filter_list.
EitherWithDataPredicate
[source]¶ 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.
Inputs: - 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
Outputs: - output : <a>
Output, First if the predicate holds true otherwise Second
Configuration: - Either predicate function
Either predicate function