Case Action

image\Action_Programming_Case.jpg

The Case action is used to contain a value that is checked against the value held in a Select action. If the value in the Select action matches the value in the Case action, the actions listed underneath the case action are run.

Note:
This option can only be used when a Select action has already been selected for a trigger.

Setting up the Case action:

1. Click on the Select action in the Actions Organiser to select it – it will be highlighted in blue. Then double-click the Case action – this will add a new Case action to your Select action. The Case tab will automatically appear when you add the action.

2. Use the Value option if you want to type in a specific value you want to compare with the value of the Select action. You can type in alphabetic or numeric characters in this box with spaces e.g. John Smith, 50%, 3.14 are all valid entries in this box.

Note:
The value you enter in this box MUST be in the same case as the value in the Select action. For example, if the value in the Select action is John Smith and the value in this Case action is john smith then this case will be ignored.

3. Use the Range option when you want to match a range of values against the Select action’s value. The Min field will contain the minimum value that you want to set for the range; and the Max field will contain the maximum value. By default this option is selected.

Note:
If the value of the Select action falls within (or equals) the Min and Max values, then this Case action is activated and the actions listed under it will be run.

4. Click on the Apply button to save your changes.

5. Now add you actions to the Case action – see Adding a Sub-set of Actions for more information.

6. Add other Case actions to your Select action as described in point 1 above.

Note:
When this publication is run, once the system finds one Case action that matches the value of a Select action the list of actions under the case action are run and the rest of the Case actions are ignored. If none of the values in the Case actions match the value of the Select action – the Default action is run instead.

Related Topics:

the Select action

Introducing the Programming Actions

Choosing an Action