[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

RE: [sqr-users] Nested Evaluate with multiple conditions???



Larry -
 
Thanks for your advice. Actually, the latter is what I want it to do. In my 
case, &B will NEVER equal two values at the same time. So am EITHER-OR logic is 
what I need here. I've tested this and it worked for me.
 
Thanks again.
- Darrel

Larry Roux <LRoux@syr.edu> wrote:
Agreed. Or at least something like

Evaluate &A
When='1'
if &B != 2 and &B != 3
Do blah
End-If
End-Evaluate

I think the 
When!='1'
When!='2'
Do blah

will pass to "Do Blah" if EITHER When!='1' OR When!='2' is true. This is NOT an 
AND.





******************************
Larry Roux
Syracuse University
lroux@syr.edu
*******************************

>>> GJANSEN@aflcio.org 12/18/03 02:18PM >>>
Agreed, but why even nest? Why not

If &A = 1 and &B != 2 and &B != 3
do Blah
End-If



>>> SVH@CDRH.FDA.GOV 12/18/03 09:13AM >>>
I think this sort of logic will better be handle in an "If then else"
construct.


-----Original Message-----
From: Darrel Scott [mailto:darrel_1977@yahoo.com] 
Sent: Wednesday, December 17, 2003 5:49 PM
To: sqr-users@sqrug.org 
Subject: [sqr-users] Nested Evaluate with multiple conditions???



Hello all -

I'm trying to get this EVALUATE code to work....

Evaluate &A
When='1'
Evaluate &B
When!='1'
When!='2'
Do blah
End-Evaluate
End-Evaluate

In a nutshell, if &A is equal to 1 and &B is NOT equal to 1 or 2 do
"blah".

What am I doing wrong?

Thanks in advance.


---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org http://www.sqrug.org/mailman/listinfo/sqr-users 

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org 
http://www.sqrug.org/mailman/listinfo/sqr-users 

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org 
http://www.sqrug.org/mailman/listinfo/sqr-users


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users

---------------------------------
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users