> Date: Mon, 27 Mar 2006 03:20:15 -0500> From: jim2stat@YAHOO.CO.UK> Subject: Q: Evaluation of conditional expressions> To: SAS-L@LISTSERV.UGA.EDU> > Hi friends,> > Suppose x = 1 and y = 2, then what would the conditional expression> IF (X EQ 0 AND Y EQ 0)> in a data step do? X is not 0, the evaluation of the first part yields> false, so the whole condition is not true, but is the condition Y EQ 0> evaluated as well? It is my impression it is not, but I am not sure. Where> can I find this in the docs?> > Regards - Jim.> --> Jim Groeneveld, Netherlands> Statistician, SAS consultant> home.hccnet.nl/jim.groeneveld
The second part doesn't appear to be evaluated unless the first part if true.
Try setting Y to missing and performing some arithmatic on it say "(Y+0) EQ 0" to cause a possible NOTE in the log.
You will get a missing value note in the log when X is 0, but no note when X is 1.
Express yourself instantly with MSN Messenger! Download today it's FREE!