Skip to main content
Conditions are used by operations like Select and Mask to define when the operation applies. Conditions are represented as a tagged union, using the field type which every condition contains. Anywhere a condition is accepted you may find any of the conditions listed here, and you tell them apart using the value of the type field.

Time conditions

ConditionTagDescription
MonthmonthOnly applies in the specified months.
DayOfWeekday_of_weekOnly applies on the specified days of the week.
TimeOfDaytime_of_dayOnly applies within the specified time-of-day range.
ExcludeHolidaysexclude_holidaysApplies on all days except the specified holidays.
AndandApplies when all sub-conditions are met.
OrorApplies when any sub-condition is met.
NotnotApplies when the sub-condition doesn’t apply.

Value conditions

ConditionTagDescription
HighesthighestKeep the N highest values per resolution window.
LowestlowestKeep the N lowest values per resolution window.