Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

GOTO

1977 Version of ANSI Standard

3.6.6 GOTO

G[OTO] postcond Space L gotoargument

    gotoargument::= doargument

GOTO is a generalized transfer of control. If provision for a return of control is desired, DO may be used.

Each gotoargument is examined, one at a time in left-to-right order, until the first one is found whose postcond is either absent, or present and true. If no such gotoargument is found, control is not transferred and execution continues normally. If such a gotoargument is found, execution continues at the start of the line it specifies.

See 3.6.5 for a discussion of additional effects of GOTO when executed within the scope of FOR.

See also the transition diagram for Goto.

Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

This page most recently updated on 12-Sep-2014, 10:11:23.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)