core

### Do / Until

The Insert | Flow Control Command | Control Pairs | Do / Until menu option allows you to add a conditional loop to the measurement routine. The items between the DO and the UNTIL commands will continue to execute in a loop until the expression of the UNTIL command evaluates to TRUE (nonzero). The DO/ UNTIL commands can be added anywhere in the measurement routine. The expression is tested at the end of each loop.

The Edit window command line for a DO / UNTIL statement reads:
DO/
UNTIL/ expression

To insert DO / UNTIL commands:

1. Place the cursor in the desired location of the Edit window.

2. Select Do / Until from the menu bar. The DO / UNTIL statements will appear in the Edit window.

More:

Code Sample of Do / Until