LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (June 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 25 Jun 2004 20:22:44 -0400
Reply-To:     "Chang Y. Chung" <chang_y_chung@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Chang Y. Chung" <chang_y_chung@HOTMAIL.COM>
Subject:      Re: IF conditions and ARRAY subscripts
Comments: To: Talbot Michael Katz <topkatz@MSN.COM>

On Fri, 25 Jun 2004 19:49:11 -0400, Talbot Michael Katz <topkatz@MSN.COM> wrote:

...

>whether one of the array subscripts is out of bounds. I thought that the >rule for an IF statement with OR conditions was that it checks individual >conditions successively, and stops checking as soon as it finds one that is >true. ...

Hi, TMK,

A good question. I guess the answer to your quesion is related to the rules regarding whether a set of boolean expressions short-circuits or not. The short answer is "not always." There was a thread in sas-l last october about this. See especially the posting by Bruce:

http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0310C&L=sas-l&P=R2197&D=1&O=D

Cheers, Chang


Back to: Top of message | Previous page | Main SAS-L page