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

GOTO

1995 Version of ANSI (Equivalent to Current ISO Version) of Standard

8.2.6 Goto

G[OTO] postcond SP L gotoargument

    gotoargument::=

entryref postcond
@ expratom V L gotoargument


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 whose postcond is present and its tvexpr is 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 left of the line it specifies, provided the line has the same LEVEL as the line containing the Goto and, if the LEVEL of the line containing the Goto is greater than one, there may be no lines of lower execution LEVEL between the line specified by the gotoargument and the line containing the Goto, and the line containing the Goto and the line specified by the gotoargument must be in the same routine. Otherwise, an error occurs with ecode="M45".

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)