Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Mumps > Re: Need help w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 9 Topic 957 of 992
Post > Topic >>

Re: Need help with 'if' statement

by Aaron Seidman <aaron@[EMAIL PROTECTED] > May 5, 2008 at 12:43 AM

Duke Normandin wrote:
>> One way to remember is to think of all M commands as containing two
>> spaces:
>>
>> <previous command or linestart> Commandword Space Argument(s) Space
>                                                |                 |
>                                                |                 |
>                                                +> 2 spaces each <+
> Is this what you mean?

Each command must have exactly one space between the commandword (e.g. 
WRITE, IF, DO, etc.) and the argument list and there must be one or more 
spaces or nl after the argument(s), depending whether there is anything
else 
following.

Some examples (NB: the semicolon ";" is the comment character):

|space|WRITE<sp>"FOO"<nl> ; One vommand on the line, line ends with
newline
| tab |


|space|WRITE<sp>"FOO","BAR"<sp>READ<sp>VAR<nl> ; two commands on line
| tab |


|space|ELSE<sp><sp>KILL<sp>VAR<nl> ; ELSE command has empty arg list
| tab |

Aaron
 




 9 Posts in Topic:
Need help with 'if' statement
Duke Normandin <dukeof  2008-05-04 03:23:15 
Re: Need help with 'if' statement
rodd@[EMAIL PROTECTED] (  2008-05-04 05:02:00 
Re: Need help with 'if' statement
lmv <lverhulst@[EMAIL   2008-05-04 00:39:17 
Re: Need help with 'if' statement
Rob Tweed <rtweed@[EMA  2008-05-04 10:33:00 
Re: Need help with 'if' statement
Duke Normandin <dukeof  2008-05-04 13:46:34 
Re: Need help with 'if' statement
Aaron Seidman <aaron@[  2008-05-04 15:43:09 
Re: Need help with 'if' statement
Duke Normandin <dukeof  2008-05-04 23:07:27 
Re: Need help with 'if' statement
Aaron Seidman <aaron@[  2008-05-05 00:43:55 
Re: Need help with 'if' statement
Duke Normandin <dukeof  2008-05-05 11:39:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 18:23:05 CDT 2008.