User Tools

Site Tools


action:If_Then_Else

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
action:If_Then_Else [2015/07/08 21:16]
mirazjordan created
action:If_Then_Else [2021/10/12 23:09] (current)
peternlewis
Line 1: Line 1:
-The If Then Else action allows you to choose which of two sets of actions should execute. If certain conditions are met then execute one list of actions. If not, execute another. If there are no conditions set then no actions will execute.+====== ​If Then Else Action ======
  
-{{:​action:​ifthenelse.png|}}+The *If Then Else* action allows you to choose which of two sets of actions should execute. If certain conditions are met then execute one list of actions. If not, execute another. If there are no conditions set then no actions will execute. 
 + 
 +{{:​action:​ifthenelse.png?500|}}
  
 Drag one or more actions into the //No Action// areas. Drag one or more actions into the //No Action// areas.
Line 13: Line 15:
 Add a new condition by clicking the green + button beside //New Condition// to select from a list of available conditions. Add a new condition by clicking the green + button beside //New Condition// to select from a list of available conditions.
  
-Conditions are grouped by category. See the Conditions section for further details. +Conditions are grouped by category. See the [[:Conditions|Conditions]] ​section for further details. 
-  ​*Application + 
-  *Button +~~NOCACHE~~ 
-  *Calculation +<nspages condition -textPages="">​
-  *Clipboard +
-  *Environment Variable +
-  *Found Image +
-  *Key +
-  *Location +
-  *Macro/​Macro Group +
-  *Menu +
-  *Modifiers +
-  *Mounted Volume +
-  *Path +
-  *Pixel +
-  *Script +
-  *Text +
-  *Typed String +
-  *USB Device +
-  *Variable +
-  *Any Window +
-  ​*Front Window +
-  ​*Wireless Network+
  
 After selecting a condition category you can make further choices. For example, if you choose the //​Application Condition// you can choose a specific application to be running, or at the front, and so on. After selecting a condition category you can make further choices. For example, if you choose the //​Application Condition// you can choose a specific application to be running, or at the front, and so on.
Line 41: Line 24:
 Add further conditions by clicking the green + button again. Add further conditions by clicking the green + button again.
  
 +===== See Also =====
 +
 +=== Actions ===
  
 +* [[action:​Pause_Until|Pause Until]] action
 +* [[action:​For_Each|For Each]] action
 +* [[action:​Repeat|Repeat]] action
 +* [[action:​Until|Until]] action
 +* [[action:​While|While]] action
 +* [[action:​Assert|Assert]] action
 +* [[actions:​Redirect_Control_Flow|Redirect Control Flow]] actions
 +* [[:​Actions|See all Actions]]
  
 +==== Forum ====
  
 +- [[https://​forum.keyboardmaestro.com/​t/​my-variable-thats-set-to-2-is-not-same-as-number-2/​3004/​2|My Variable that's set to 2 is not same as number 2]]
action/If_Then_Else.1436404615.txt.gz · Last modified: 2015/07/08 21:16 by mirazjordan