Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing Case statements

Status
Not open for further replies.
Apr 18, 2007
209
US
Hello ,
I have a problem I need to write case statements, I have 3 fiel PX PD PF so I need to write case statements in this way

I need to display "AUTO" case: PX="02" ,PD ="04" and PF ="44"
display "TRY" for case: PX="08" ,PD ="14" and PF ="42" and so on.
Can anyone give me correct syntax for this.
Thanx a ton
Tob
 
Hi,

You can use IF...THEN statement as well.
ex)

if PX="02" or
PD ="04" or
PF ="44"
then "AUTO"
else if PX="08" or
PD ="14" or
PF ="42"
then "TRY"
else " "
something like that.


Hope it helps..


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top