☜ | IF1990 Version of ANSI Standard | ☞ |
I[F] | │ │ │ |
[ SP ] SP L ifargument |
│ │ │ |
See section 1 for the definition of L.
ifargument | ::= | │ │ │ |
tvexpr @ expratom V L ifargument |
│ │ │ |
See 2.2.4.2 for the definition of tvexpr. See 2.2 for the definition of expratom. See section 1 for the definition of V. See section 1 for the definition of L.
In its argumentless form, If is the inverse of Else. That is, if the value of $T is 0, the remainder of the line to the right of the If is not executed. If the value of $T is 1, execution continues normally at the next command.
If exactly one argument is present, the value of tvexpr is placed into $T; 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.
This page most recently updated on 14-Nov-2023, 21:10:36.
For comments, contact Ed de Moel (demoel@jacquardsystems.com)