Condition Blocks
The condition block controls when a rule is applied, based on channel properties, client, playlist, and more
Note
All fields are optional. To combine criteria use and or or, which take arrays of condition blocks.
YAML Structure
Fields
| Field | Type | Description |
|---|---|---|
selector |
Selector |
See selector docs for details on matching properties |
patterns |
[]regex |
Array of regex patterns, matches channel name or other selector item |
clients |
[]string |
Restrict to clients by name |
playlists |
[]string |
Restrict to playlists by name |
and |
[]Condition |
All nested conditions must match |
or |
[]Condition |
At least one nested condition must match |
invert |
boolean |
If true, invert the condition result |
Examples
Channel Name Pattern:
Limit to Clients/Playlists:
condition:
clients: ["family-tablet", "living-room-tv"]
playlists: ["sports-premium", "news-channels"]
Attribute Match Using Selector:
Nested Conditions with AND/OR:
Invert Condition: