View previous topic :: View next topic
|
Author |
Message |
mohitsaini Warnings : 1 New User
Joined: 15 May 2006 Posts: 92
|
|
|
|
Plz refer the below piece of code:
EVALUATE TRUE
WHEN A AND B
ADD 100 to WS1
WHEN D AND E
ADD 200 to WS2
END-EVALUATE
is AND legal??
Can we use multiple ANDs with WHEN?
I tested this and it is working fine. I am surprised to see it is working fine. Is this kind of AND usage documented somewhere ??? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Morning Sir !
You could use ALSO instead of and with WHEN.
As Dick told, read about Evaluate in the manual. |
|
Back to top |
|
|
lonerusher
New User
Joined: 30 Nov 2010 Posts: 4 Location: India
|
|
|
|
You can also use Multiple AND with IF condition clause.
I havn't tried multiple AND with WHEN... Its better to use EVALUATE clause to handle MULTIPLE AND.. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Please do not add things to topics that provide no new information. . .
And when new information is added, it should be tested/verified not something that has not been tried. . . |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
lonerusher has made 7 such posts. have no idea how many more until he is satisfied with his post count. |
|
Back to top |
|
|
|