View previous topic :: View next topic
|
Author |
Message |
pankajupadhyay Warnings : 1 New User
Joined: 04 May 2007 Posts: 13 Location: pune
|
|
|
|
hi everyone,
could you plz tell me diffrence b/w diffrent type of evalute with clear practicle example .
thanks in advance |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Could you please give me your defination of "evalute"? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
EVALUATE is a way to code a series of nested IFs.
If you have some code that you would like clarification about, please post the code and we will explain. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
For Example:
Evaluate Field-01
when '01' perform proc-01
when '02' perform proc-02
when other performe something-else-proc
End-Evaluate
Evaluate True
when process-01-yes perform proc-01
when process-02-yes perform proc-02
when other continue
End-Evalute
Evaluate true also true
when pr-01-yes also pr-02-yes perform P01
when pr-02-yes also any perform X99
when other continue
End-Evaluate
Evaluate Field
when '01' move...
move...
when other compute....
End-Evaluate
Regards, UmeySan |
|
Back to top |
|
|
pankajupadhyay Warnings : 1 New User
Joined: 04 May 2007 Posts: 13 Location: pune
|
|
|
|
hello Umey,
thanks for example given by u
Evaluate Field-01
when '01' perform proc-01
when '02' perform proc-02
when other performe something-else-proc
End-Evaluate
Evaluate True
when process-01-yes perform proc-01
when process-02-yes perform proc-02
when other continue
End-Evalute
but i faced a question in interview that..... tell advantage of one EVALUATE over another.
when i will use Evaluate variable, and when i will use Evaluate True ?
[/b] |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
pankajupadhyay wrote: |
but i faced a question in interview that..... tell advantage of one EVALUATE over another.
when i will use Evaluate variable, and when i will use Evaluate True ? |
Use one over the other when logic calls for it.
The one deals with one result from multiple situations where the other deals with multiple results from one situation. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
The biggest "advantage" i'm aware of is that it may make code more readable.
I've not yet seen anything that would not work unless EVALUATE was used in the code. Said differently, EVALUATE was not always part of the language, but the same codtitions were tested. . . |
|
Back to top |
|
|
|