Difference between revisions of "Constraint: AND / OR / XOR / NOT"
| Line 1: | Line 1: | ||
| − | < | + | <pre class="header-style">This constraint lets you combine other constraints using AND, OR, XOR, or NOT logic.</pre> |
| − | + | ''' Options ''' | |
| − | + | * '''AND''': All nested constraints must be true | |
| − | + | * '''OR''': At least one nested constraint must be true | |
| + | * '''XOR''': Exactly one nested constraint must be true | ||
| + | * '''NOT''': Invert the result of the nested constraints | ||
| − | + | ''' Example ''' | |
| − | + | ''Example 1: Enable DND only when it is late and Wi-Fi is disconnected'' | |
| − | < | + | <pre class="trigger-style">Triggers |
| − | < | + | Screen On/Off - Screen On</pre> |
| + | <pre class="action-style">Actions | ||
| − | + | Priority Mode / Do Not Disturb (Priority Only)</pre> | |
| + | <pre class="constraint-style">Constraints | ||
| − | + | AND | |
| + | - Time of Day (22:00-06:00) | ||
| + | - Wifi State (Disconnected)</pre> | ||
| − | + | ''' See Also ''' | |
| − | + | * [[Constraint: Time of Day|Time of Day Constraint]] | |
| − | + | * [[Constraint: Wifi State|Wifi State Constraint]] | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Latest revision as of 10:56, 9 January 2026
This constraint lets you combine other constraints using AND, OR, XOR, or NOT logic.
Options
- AND: All nested constraints must be true
- OR: At least one nested constraint must be true
- XOR: Exactly one nested constraint must be true
- NOT: Invert the result of the nested constraints
Example
Example 1: Enable DND only when it is late and Wi-Fi is disconnected
Triggers Screen On/Off - Screen On
Actions Priority Mode / Do Not Disturb (Priority Only)
Constraints AND - Time of Day (22:00-06:00) - Wifi State (Disconnected)
See Also