Difference between revisions of "CONTINUE"
|Line 21:||Line 21:|
Revision as of 13:12, 27 July 2010
This commands is used inside a [FOR]] / NEXT loop to increment the loop variable and jump back to the start of the loop (or to jump to the end of the loop, if the loop variable has reached the loop end value). the results is the same as using a GOTO command to jump to a label immediately before the NEXT command.
- No Parameters
- FOR ToolNum = 3 TO 8
- GET_TOOL_DATA ToolNum, MTOOL_DIA, dia
- IF dia < 3 THEN GOTO Small
- IF dia < 6 THEN GOTO Medium
- IF dia < 9 THEN GOTO Big
- Message "Small"
- Message "Medium"
- Message "Big"
- NEXT ToolNum
- For an example in a real macro see Modify_op_path2