When I had this question in mind, I did not think of actually just
writing some code to prove one way or another.

It appears Magic continues evaluating even though the statement will
evaluate to false.

Here's the code I tried at the front end:

""^A,
1^B,
IF{A&B&(3^C) do this;
Do that}

When I examined variable C - its value was 3 so apparently the
interpreter continues evaluating even though the evaluation will be
false.

James Purvins
Inland Northwest Health Services
(509) 232-8384

This e-mail and any attachments are confidential and may also be
privileged. If you are not the named recipient, or have otherwise
received this communication in error, please delete it from your inbox,
notify the sender immediately by replying to the message, and do not
disclose its contents to any other person, use the information for any
purpose or store or copy the information in any medium. Thank you for
your cooperation
> _____________________________________________ 
> From:         Purvins, James  A.  
> Sent: Thursday, June 21, 2007 2:46 PM
> To:   [email protected]
> Subject:      Magic Question : IF : DO : Expression Evaluation
> 
> To Meditech-L,
> This is just a curiousity question to kill the cat.
> 
> Does anyone know if Magic continues to evaluate an IF or DO statement
> once it has been determined that it will fail.
> 
> For example:
> ""^A,
> 1^B,
> IF{A&B do this;
> Do that},
> 
> Will the Magic interpreter evaluate B even though A is nil and the
> interpreter should just automatically <do that>?
> 
> This is one of those Friday questions (its not Friday yet but I am
> thinking about it)
> 
> James Purvins
> Inland Northwest Health Services
> (509) 232-8384
> 
> This e-mail and any attachments are confidential and may also be
> privileged. If you are not the named recipient, or have otherwise
> received this communication in error, please delete it from your
> inbox, notify the sender immediately by replying to the message, and
> do not disclose its contents to any other person, use the information
> for any purpose or store or copy the information in any medium. Thank
> you for your cooperation
> 
> 
> 
> 
> 
> 
> 
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
To subscribe or unsubscribe to the meditech-l, visit MTUsers.NET.

To check the status of the meditech-l, visit MTUsers.NET.

For help, email [EMAIL PROTECTED]

Visit the MTUsers WikiPedia at MTUsers.NET/mwiki
______________________________________
meditech-l mailing list
[email protected]
http://mtusers.com/mailman/listinfo/meditech-l

Reply via email to