next up previous contents
Next: Other commands Up: Execution Control Previous: Creating Labels   Contents

Using Labels

You can tell GICO to continue the calculation at a specific label with 2 G(OTO) L(ABEL) <label> ; [example: G   L   MAGNPART ;]

This is similar to the GOTO command in a Fortran program.
If you want to return to your previous point in the input, use: 2 G(OTO) S(UBROUTINE) <label> ; [example: G   S   MAGNPART ;]

GICO will execute the commands after the label and jump back when encountering: 2 R(ETURN) S(UBROUTINE) ; [example: R   S ;]

KPII
1999-10-20