Re: [Hardhats-members] Easy M syntax question

2004-12-01 Thread Kevin Toppenberg
On this same topic... which is correct? Option 1: goto:(i1) SomeLabel or Option 2: goto SomeLabel:(i1) According to what is writen below, I would think Option 2, but I found the following line in XUP that looks like option 1. if ($get(DUZ)'0)!(('$data(DUZ(0 do ASKDUZ^XUP goto:Y'0 XUPAbort

Re: [Hardhats-members] Easy M syntax question

2004-12-01 Thread Greg Kreis
If you put the condition on the command, it controls the entire command, while the argument's condition further refines it. One way I could see doing it, would be to factor out a common AND term to the command condition. Greg Woodhouse wrote: How about both? I personally pefer the

Re: [Hardhats-members] Easy M syntax question

2004-11-03 Thread whitten
Your intuition is correct. only three Standard MUMPS commands have postconditional operators that apply to their arguments.The DO command, the GOTO command, and the XECUTE command. Quick question: if I see a command like this: DO RTN1,RTN2,RTN3:(A1) Then does the postconditional

Re: [Hardhats-members] Easy M syntax question

2004-11-03 Thread Maury Pepper
You are correct! By definition, in M/umps: command arg1,arg2, ... is equivalent to: command arg1 command arg2 ... - Original Message - From: Kevin Toppenberg [EMAIL PROTECTED] To: Hardhats Sourceforge [EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 10:44 AM Subject:

RE: [Hardhats-members] Easy M syntax question

2004-11-03 Thread Cameron Schlehuber
You're right, just RTN3 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Toppenberg Sent: Wednesday, November 03, 2004 9:44 AM To: Hardhats Sourceforge Subject: [Hardhats-members] Easy M syntax question Quick question: if I see a command like this:

Re: [Hardhats-members] Easy M syntax question

2004-11-03 Thread James Gray
It is just RTN3. - Original Message - From: Kevin Toppenberg [EMAIL PROTECTED] To: Hardhats Sourceforge [EMAIL PROTECTED] Sent: Wednesday, November 03, 2004 9:44 AM Subject: [Hardhats-members] Easy M syntax question Quick question: if I see a command like this: DO RTN1,RTN2,RTN3:(A1)

Re: [Hardhats-members] Easy M syntax question

2004-11-03 Thread Kevin Toppenberg
Thanks everyone. You all are a great help. Kevin --- Maury Pepper [EMAIL PROTECTED] wrote: You are correct! By definition, in M/umps: command arg1,arg2, ... is equivalent to: command arg1 command arg2 ... - Original Message - From: Kevin Toppenberg [EMAIL PROTECTED]