action:While
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:While [2016/03/04 00:08] – ADD links for Conditions and Found Image JMichaelTX | action:While [2021/10/14 04:33] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== While Action ====== | + | ====== While Conditions Are Met Action ====== |
| - | The While action executes | + | This _Action_ repeats |
| - | {{: | + | It is one of several Actions that _loop_ through a set of other Actions until some criteria is met. |
| - | Drag one or more actions into the //No Action// area. | + | **The _While_ Criteria can be any of these:** |
| - | + | ||
| - | Select a way to meet the [[: | + | |
| *Any of the following are true — at least one condition must be true. | *Any of the following are true — at least one condition must be true. | ||
| *All of the following are true — every condition must be true. | *All of the following are true — every condition must be true. | ||
| Line 13: | Line 11: | ||
| *Not all of the following are true — at least one condition must be false. | *Not all of the following are true — at least one condition must be false. | ||
| - | Add a new condition by clicking the green + button beside //New Condition// to select | + | **The _Condition_ can be any from the [[: |
| - | [[: | + | **When you insert this _Action_ it appears like this:**\\ |
| - | | + | {{: |
| - | | + | |
| - | | + | ===== How To Setup ===== |
| - | *Clipboard | + | |
| - | *Environment Variable | + | - Select one _While Criteria_ from the _While_ popup list.\\ (default is _all of the following is true_). |
| - | *[[condition:Found_Image|Found Image]] | + | - Add one or more new conditions by clicking the green + button next to the //New Condition// to see a popup menu of [[: |
| - | *Key | + | - Select one of these _Conditions_ and enter additional details as needed. |
| - | | + | - Insert one or more [[:Actions|Actions]] into the //No Action// area. |
| - | | + | |
| - | | + | ===== Exiting the While Loop ===== |
| - | | + | |
| - | | + | * The _Actions_ in the _While_ loop (set of actions) will start *if* all criteria and conditions are met when the _Action_ is executed in the Macro processing. |
| - | *Path | + | * As soon as the _While_ Criteria is _not_ met, the _Action_ will exit the loop, and the next _Action_ (if any) in the Macro will be processed. |
| - | | + | * You can explicitly exit the loop by using the [[action:Break_From_Loop|Break From Loop]] _Action_. |
| - | | + | * For example, in the example _Action_ shown below, the _While_ loop will exit\\ |
| - | | + | 1. Finder is NOT frontmost\\ |
| - | | + | **OR**\\ |
| - | *USB Device | + | 2. The Keys ⌘⇧ are pressed\\ |
| - | | + | **THEN the loop will exit.** |
| - | | + | |
| - | | + | You can break out of the loop, retry this iteration, or skip to the next iteration with the [[actions: |
| - | | + | |
| + | ===== Example ===== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | ===== Conditions ===== | ||
| + | |||
| + | See the [[: | ||
| + | |||
| + | ~~NOCACHE~~ | ||
| + | <nspages condition -textPages=""> | ||
| After selecting a condition category you can make further choices. For example, if you choose the // | After selecting a condition category you can make further choices. For example, if you choose the // | ||
| Add further conditions by clicking the green + button again. | Add further conditions by clicking the green + button again. | ||
| + | |||
| + | You can break out of the loop, retry this iteration, or skip to the next iteration with the [[actions: | ||
| + | |||
| + | ===== See Also ===== | ||
| + | |||
| + | === Actions === | ||
| + | |||
| + | * [[action:If Then Else|If Then Else]] action | ||
| + | * [[action: | ||
| + | * [[action: | ||
| + | * [[action: | ||
| + | * [[action: | ||
| + | * [[action: | ||
| + | * [[actions: | ||
| + | * [[: | ||
| + | |||
| + | === Conditions === | ||
| + | |||
| + | * [[: | ||
| + | ==== Forum ==== | ||
| + | |||
| + | - [[https:// | ||
| + | |||
| + | - [[https:// | ||
| + | |||
action/While.1457050134.txt.gz · Last modified: by JMichaelTX
