Syntax
JUMPTO label <logic_block> LABEL label
Parameters
JumpTo can be abbreviated as JTO or GOTO.
label
A label, corresponding to a following Label logic command.
Description
The JumpTo logic command branches logic execution to a specified label. Labels are defined using the Label logic command. Any number of JumpTo logic commands can refer to one label.
A loop or a nested loop is terminated by branching out of the loop. Branching out of nested loops terminates loops that have End logic statements in the logic between the JumpTo logic statement and its destination label.
Restrictions
The following restrictions apply to use of the JumpTo logic command:
You cannot jump into any kind of looping statement. For example, Determine, LookUp, Match, ForEach or Loop.
You cannot jump between different methods (for example, Prepare, Construct, or Main).
You cannot jump between frames. A JumpTo logic statement in a frame must have an associated Label logic statement in that frame.
You cannot branch to a preceding label; the destination label must follow the JumpTo logic statement.
Example
Loop Counter := Counter + 1 Move KeyFlag (Counter, 1) Alph (SortA) If Counter = 8 JumpTo Finish_Key End End Label Finish_Key LookUp Every Cust If Cust.GetInterest() <> "Yes" JumpTo No_Interest End : Logic to enter interest calculation code and execute : the automatic entry for those with a "Yes" value. Label No_Interest End Loop Message Attention "Enter Run Date as DDMMYY" Accept RunDate DateConvert ToDayNumber RunDate : Check that date entered is valid. If Glb.Status <> "*****" JumpTo Start_Report End End Label Start_Report