☜ | IFDraft MDC Standard | ☞ |
I[F] | │ │ │ |
[ SP ] SP L ifargument |
│ │ │ |
ifargument | ::= | │ │ │ |
tvexpr @ expratom V L ifargument |
│ │ │ |
In its argumentless form, If is the inverse of Else. That is, if the value of $Test is 0, the remainder of the line to the right of the If is not executed. If the value of $Test is 1, execution continues normally at the next command.
If exactly one argument is present, the value of tvexpr is placed into $Test; then the function described above is performed.
If with n arguments is equivalent in execution to n If commands, each with one argument, with the respective arguments in the same order. This may be thought of as an implied and of the conditions expressed by the arguments.
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.
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 14-Nov-2023, 21:10:36.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)