action:While
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| action:While [2017/03/01 21:34] – Reorganize and rewrite most sections JMichaelTX | action:While [2021/10/14 04:33] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== While Conditions Are Met Action ====== | ====== While Conditions Are Met Action ====== | ||
| - | This action executes | + | This _Action_ repeats |
| + | |||
| + | It is one of several Actions that _loop_ through a set of other Actions until some criteria is met. | ||
| **The _While_ Criteria can be any of these:** | **The _While_ Criteria can be any of these:** | ||
| Line 14: | Line 16: | ||
| {{: | {{: | ||
| - | --- | + | ===== How To Setup ===== |
| - | ===== How To Use ===== | ||
| - Select one _While Criteria_ from the _While_ popup list.\\ (default is _all of the following is true_). | - Select one _While Criteria_ from the _While_ popup list.\\ (default is _all of the following is true_). | ||
| - Add one or more new conditions by clicking the green + button next to the //New Condition// to see a popup menu of [[: | - Add one or more new conditions by clicking the green + button next to the //New Condition// to see a popup menu of [[: | ||
| Line 22: | Line 23: | ||
| - Insert one or more [[: | - Insert one or more [[: | ||
| - | --- | + | ===== 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. | ||
| + | * 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: | ||
| + | * For example, in the example _Action_ shown below, the _While_ loop will exit\\ **IF EITHER**\\ | ||
| + | 1. Finder is NOT frontmost\\ | ||
| + | **OR**\\ | ||
| + | 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 ===== | ===== Example ===== | ||
| {{: | {{: | ||
| - | |||
| - | --- | ||
| ===== Conditions ===== | ===== Conditions ===== | ||
| + | See the [[: | ||
| - | [[: | + | ~~NOCACHE~~ |
| - | | + | < |
| - | *Button | + | |
| - | *Calculation | + | |
| - | *Clipboard | + | |
| - | *Environment Variable | + | |
| - | *[[condition: | + | |
| - | *Key | + | |
| - | *Location | + | |
| - | *Macro/ | + | |
| - | *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 // | 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.1488404061.txt.gz · Last modified: by JMichaelTX
