core

### Jumping to a Label Based on Conditions

If Expression dialog box

With the Insert | Flow Control Command | If Goto option, you can use the If Expression dialog box to create IF GOTO statements within your measurement routine. When the measurement routine is executed and PC-DMIS encounters an IF GOTO statement, the routine flow moves to the label identification if the specified expression evaluates to a non-zero value.

The Edit window command line for an IF_GOTO statement reads:
IF_GOTO/expression, GOTO=Label

Expression - If you click Expression, the expression builder opens. With the expression builder you can create a variety of different expressions that you may need within your measurement routine. Once you create the expression it appears in the Expression box. For information on creating expressions, see the "Using Expressions and Variables" chapter.

Label - If you click Label, the Goto dialog box opens. From the Goto dialog box, you can choose what label you want the routine flow to move to when the defined expression is met. The chosen label appears in the Label box. Or if you know the label name, you can type it in the box. For more information on labels, see "Jumping to a Label".