User Tools

Site Tools


action:Switch_or_Case

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
action:Switch_or_Case [2016/11/27 18:15]
JMichaelTX ADD example screenshot, icon, rewrite description
action:Switch_or_Case [2016/12/08 14:22]
JMichaelTX Clarified Switch Conditions
Line 32: Line 32:
 ===== Conditions ===== ===== Conditions =====
  
 +The _Conditions_ available depend on the _Parameter_ that is chosen:
 +{{:​action:​km-7.3-switch-conditions.png?​nolink|}}
  
-The _Condition_ can be and of the following:+The _Conditions_ are defined as follows: 
 + 
 +^Condition^Definition^ 
 +|has text |has text of some sort, i.e. it is _not_ empty.| 
 +|does not have text |does not have text, i.e., it _is_ empty.| 
 +|has image |has one or more images on the clipboard.| 
 +|does not have image |does not have any images on the clipboard.| 
 +|is |is exactly (case insensitive) a specified string.| 
 +|is not |is not exactly (case insensitive) a specified string.| 
 +|is before |is alphabetically before a specified string. (v7.2+)| 
 +|is after |is alphabetically after a specified string. (v7.2+)| 
 +|contains |contains (case insensitive) a specified string.| 
 +|does not contain |does not contain (case insensitive) a specified string.| 
 +|matches |matches a specified regular expression.| 
 +|does not match |does not match a specified regular expression.| 
 +|conforms to |Clipboard has an item with the UTI class that conforms to the specified [Uniform Type Identifier](https://​en.wikipedia.org/​wiki/​Uniform_Type_Identifier).| 
 +|does not conform to |Clipboard does not have an item with the UTI class that conforms to the specified Uniform Type Identifier.| 
 +|otherwise |will execute if none of the Conditions in the Switch, that are entered above _otherwise_,​ are met.|
  
-* has text of some sort. 
-* does not have text. 
-* has an image of some sort. 
-* does not have an image. 
-* is exactly (case insensitively) a specified string. 
-* is not exactly (case insensitively) a specified string. 
-* is alphabetically before a specified string. (v7.2+) 
-* is alphabetically after a specified string. (v7.2+) 
-* contains (case insensitively) a specified string. 
-* does not contain (case insensitively) a specified string. 
-* matches a specified regular expression. 
-* does not match a specified regular expression. 
-* has some flavor that conforms to the specified [Uniform Type Identifier](https://​en.wikipedia.org/​wiki/​Uniform_Type_Identifier). 
-* does not have a flavor that conforms to the specified Uniform Type Identifier. 
-* otherwise (aka always). 
  
 The _Otherwise_ _Condition_ will execute if none of the above _Conditions_ are met.  The _Switch_ Action will then exit.  So, the _Otherwise_ _Condition_ should always be placed as the last _Condition_ in the _Switch_ Action. The _Otherwise_ _Condition_ will execute if none of the above _Conditions_ are met.  The _Switch_ Action will then exit.  So, the _Otherwise_ _Condition_ should always be placed as the last _Condition_ in the _Switch_ Action.
action/Switch_or_Case.txt · Last modified: 2022/09/17 22:49 by peternlewis