Changes

no edit summary
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 which trigger fired the macro.</pre>
   −
This constraint can be used to allow/prevent functionality running depending on what trigger fired. For example if you have a macro with a Geofence entered trigger and Geofence closed trigger, you may use this constraint to perform certain actions when the enter trigger fires and other actions when the exit trigger fires.
+
''' Options '''
   −
It only makes sense to use this constraint on macros that have multiple triggers and only directly on actions. Using this constraint on the entire macro will never allow the macro to fire.
+
* '''Trigger''' - Select the trigger to match
 +
 
 +
''' Example '''
 +
 
 +
''Example 1: When YouTube is launched force landscape mode and cancel when YouTube is closed''
 +
  <pre class="trigger-style">Triggers
 +
 
 +
Application Launched (YouTube)
 +
Application Closed (YouTube)</pre>
 +
  <pre class="action-style">Actions
 +
 
 +
If (Trigger Fired Application Launched)
 +
  Force Screen Rotation (Force Landscape)
 +
ELSE
 +
  Force Screen Rotation (Cancel Force Mode)
 +
ENDIF</pre>