The Switch node is useful when you have to test for several different outcomes of a certain variable. A Switch node is meaningless without one or more subnodes. The subnodes must be added manually. There are two different node types you can add to a Switch node:

  • – Specifies case values that should be compared to the switch value.

  • – Specifies the case that none of the case values are equal to the switch value.

Insert a switch node as follows:

  1. In the form, ( > > ), in the lower pane, right-click the node, point to and select .

    A new node is added to the bottom of the modeling tree. If you want to insert a node into a particular position in the tree, drag it from the node list displayed on the left.

  2. In the field, describe in plain words what the Switch node does.

  3. In the field, select the switch value that will be compared to the case values defined in the switch node's subnodes.

  4. Click to test the code syntax.

  5. Click OKto save the code.

  6. Add one or more subnodes to the Switch node:

    Right-click and select to add a or subnode.

    Note Note

    You can add as many Case nodes as you like, but it only makes sense to add one or zero Default nodes.


  7. Define the actions that will be performed by each node and subnode until your Switch node is complete.