[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???
The reason the original code didn't work is that two "when" tests in a row
act like and "or." If you say "when &B is not 1 or when &B is not 2," every
value of &B will work for one or another of the tests. After all, 1 is not
2, so it works, and 2 is not 1, so it works, too.
-----Original Message-----
From: Darrel Scott [mailto:darrel_1977@yahoo.com]
Sent: Wednesday, December 17, 2003 3:19 PM
To: sqr-users@sqrug.org
Subject: RE: [sqr-users] Nested Evaluate with multiple conditions???
That worked!!! Thanks so much.
Peter Burton <Peter_Burton@Hyperion.com> wrote:Darrel,
Begin-Report
Move '1' to $A
Move '3' to $B
Evaluate $A
When = '1'
Evaluate $B
When = '1'
When = '2'
Break
When-Other
Show 'Other'
Break
End-Evaluate
End-Evaluate
End-Report
Peter Alan Burton
Principle Software Engineer
> -----Original Message-----
> From: sqr-users-admin@sqrug.org@HYPERION On Behalf Of Darrel
> Scott
> 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
>
Here was a non admissible message part of 'application/ms-tnef' MIME
type. It has been automatically discarded before sending the message to
the list.
---------------------------------
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