On 12/31/05, Jim Self <[EMAIL PROTECTED]> wrote:
 

Comma is not an operator in MUMPS expressions. It is the separator of command
arguments in an argument list.

Therefore "A,B" is not an _expression_. It is a list of arguments to an IF command.

Ahh, so maybe another way to say this, is that a post conditional ':' doesn't allow multiple arguments. So
    GOTO L1:myvar1,myVar2
would NOT be allowed.  And to do this, I would use:
   GOTO L1:(myvar1&myVar2)

"IF A,B" is equivalent to "IF A IF B" and almost equivalent to IF A&B

The difference is that in "IF A,B", B is never evaluated when A is false.
In "IF A&B", B is always evaluated in some implementations of MUMPS, regardless of the
value of A.


Thanks, I was wondering if M did a "short-circuit" with A&B if A is false.  Apparently not.

Thanks
Kevin

Reply via email to