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

$SELECT

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

7.1.5.18 $Select

$S[ELECT] ( L | tvexpr : expr | )

This form returns the value of the leftmost expr whose corresponding tvexpr is true. The process of evaluation consists of evaluating the tvexprs, one at a time in left-to-right order, until the first one is found whose value is true. The expr corresponding to this tvexpr (and no other) is evaluated and this value is made the value of $Select. An error condition occurs, with ecode="M4", if all tvexprs are false. Since only one expr is evaluated at any invocation of $Select, that is the only expr which must have a defined value.

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, 13:13:02.

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