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

GOTO

1990 Version of ANSI Standard

2.6.6 Goto

G[OTO] postcond SP L gotoargument

See 2.5.1 for the definition of postcond. See section 1 for the definition of L.

    gotoargument::=

entryref postcond
@ expratom V L gotoargument


See 2.5.1 for the definition of postcond. See 2.2 for the definition of expratom. See section 1 for the definition of V. See section 1 for the definition of L.

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. Also, the line containing the Goto and the line specified by the gotoargument must be in the same routine.

See 2.6.5 for a discussion of additional effects of Goto when executed within the scope of For.

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)