Default Case / End Default Case

The Insert | Flow Control Command | Control Pairs | Default Case / End Default Case menu option allows you to add a conditional block to the measurement routine. The items between the DEFAULT CASE and the END DEFAULT CASE commands will execute if all other expressions in previous CASE / END CASE blocks within the corresponding SELECT / END SELECT block evaluated to false. Only one DEFAULT CASE / END DEFAULT CASE block is allowed within a SELECT/ END SELECT block. The DEFAULT CASE / END DEFAULT CASE block must be located after all CASE / END CASE blocks within the SELECT / END SELECT block.

The Edit window command line for a DEFAULT CASE / END DEFAULT CASE statement reads:

DEFAULT CASE/
END_DEFAULT_CASE/

To insert DEFAULT CASE/ END DEFAULT CASE commands:

  1. Place the cursor in the desired location of the Edit window noting positional limitations as stated above.

  2. Select Default Case / End Default Case from the menu bar. The DEFAULT CASE / END DEFAULT CASE statements will appear in the Edit window.

For a code sample see the "Code Sample of Select / End Select" topic.