Difference between revisions of "Constraint: Torch On/Off"

Line 20: Line 20:
 
   Torch On/Off (Turn On)
 
   Torch On/Off (Turn On)
 
   Speak Text("Torch On")
 
   Speak Text("Torch On")
ENDIF</pre>
+
ENDIF
 +
StopWatch Reset and Restart (Torch Toggler)</pre>
  
 
''' See Also '''
 
''' See Also '''

Revision as of 14:01, 9 January 2026

This constraint allows or prevents a macro/feature from running based on the current torch (flashlight) state.

Options

  • Torch On: Constraint passes only when the torch is on
  • Torch Off: Constraint passes only when the torch is off

Example

Example 1: Toggle the torch state when a StopWatch hits 1 minute

Triggers

Stopwatch (Torch toggler)
Actions

If (Torch On)
  Torch On/Off (Turn Off)
  Speak Text("Torch Off")
Else
  Torch On/Off (Turn On)
  Speak Text("Torch On")
ENDIF
StopWatch Reset and Restart (Torch Toggler)

See Also