JumpTo

Syntax

JUMPTO label
<logic_block>
LABEL label

Parameters

JumpTo can be abbreviated as JTO or GOTO.

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:

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