Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples
Left Hand Pointer

FOR

Annotations

Right Hand Pointer

forparameter

Introduced in the 1977 ANSI M[UMPS] language standard.

This metalanguage symbol represents a range of values to be assigned to the loop counter of a For command. Such a range of values can be:

Examples:

FOR K=1:1:10
FOR K=17:-1:10
FOR K=1,2,3,5,7,11,13
FOR K="ABC","klm","PQR"
FOR K=1:3

In the last example, unless an explicit Quit command is executed within the scope of the For loop, the loop will continue forever.

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-2018 MUMPS Development Committee;
Copyright © Examples: 1995-2018 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2018 Ed de Moel.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 13-Sep-2014, 11:11:36 .

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