Class ConditionalRowFilter (2.43.0)

ConditionalRowFilter(*args, **kwargs)

Conditional row filter which exhibits ternary behavior.

Executes one of two filters based on another filter. If the base_filter returns any cells in the row, then true_filter is executed. If not, then false_filter is executed.

Parameters

Name Description
base_filter RowFilter

The filter to condition on before executing the true/false filters.

true_filter RowFilter

(Optional) The filter to execute if there are any cells matching base_filter. If not provided, no results will be returned in the true case.

false_filter RowFilter

(Optional) The filter to execute if there are no cells matching base_filter. If not provided, no results will be returned in the false case.