| Line 1: |
Line 1: |
| − | <span style="color: #0E9549; font-size: 24px;">'''About this constraint '''</span> | + | <pre class="header-style">This constraint allows or prevents a macro/feature from running based on a system setting value.</pre> |
| | | | |
| − | This constraint can be used to allow/prevent actions being run based on the current value of a system setting.
| + | ''' Options ''' |
| | + | |
| | + | * '''Setting Name''' - Choose the system setting to check |
| | + | * '''Match Type''' - Equals, contains, or numeric comparison |
| | + | * '''Expected Value''' - The value to compare against |
| | + | |
| | + | ''' Example ''' |
| | + | |
| | + | ''Example 1: Enable auto-rotate only if it is currently disabled in system settings'' |
| | + | <pre class="trigger-style">Triggers |
| | + | |
| | + | Application Launched/Closed - Launched (YouTube)</pre> |
| | + | <pre class="action-style">Actions |
| | + | |
| | + | Auto Rotate On/Off (Enable)</pre> |
| | + | <pre class="constraint-style">Constraints |
| | + | |
| | + | System Settings - accelerometer_rotation = 0</pre> |
| | + | |
| | + | ''' See Also ''' |
| | + | |
| | + | * [[Action: Auto Rotate On/Off|Auto Rotate On/Off Action]] |