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

DO

1977 Version of ANSI Standard

3.6.3 DO

D[O] postcond Space doargument

    doargument::=

entryref postcond
@ expratom V L doargument


DO is a generalized subroutine call. Each doargument is executed, one at a time in left-to-right order. Execution of a doargument is described below.

  1. If postcond is present and false, execution of the doargument is complete at this point. If postcond is absent, or present and true, proceed to the following step.
  2. Before proceeding to the next argument of this DO or to the command following this DO, execution continues at the left end of the line specified by the entryref. Execution returns to the argument or command following this argument upon encountering an executed QUIT or eor not within the scope of a subsequently executed doargument or FOR. The scope of this doargument extends to the execution of that QUIT or eor.

See also the transition diagram for Do.

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 15-Nov-2023, 14:41:58.

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