Job Management Partner 1/Software Distribution Automatic Installation Tool Description and Reference
The goto statement provides an unconditional jump to a valid label position declared in the same section.
Jump statement Label statement
goto identifier;
identifier:
The goto statement is used to exit deeply nested loops directly. Compare, while the break statement is used to exit only one nesting level of repetitive statements.
//MAIN section
MAIN
{
...
...
AIT_LogMessage("LBL030: JUMP TO LABEL");
goto label1;
AIT_LogMessage("LBL030: NOT DISPLAYED 1"); // Not executed
label1: // The control shifts here.
AIT_LogMessage("LBL030: JUMPING TO LABEL "); // Executed
}
For better programming, you should use the break, continue, or return statement rather than the goto statement wherever possible.
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
Copyright, patent, trademark, and other intellectual property rights related to the "TMEng.dll" file are owned exclusively by Trend Micro Incorporated.