(arguments: {operator: string, params: any): anyThe _operator operator evaluates an operator with the given params. This is useful if the operator needs to be chosen dynamically. The _operator cannot evaluate itself.
Arguments
object
operator: string: The name of the operator to evaluate.params: any: The params to give to the operator.
Examples
Get a value from urlQuery if specified, else use the value in state:
_operator:
operator:
_if:
test:
_eq:
- _state: location_selector
- url_query
then: _url_query
else: _state
params:
key: field_to_getReturns: Value from urlQuery if location_selector == url_query, else the value from state.
