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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iif statement help needed for logical expression

Status
Not open for further replies.

mpreziosi

IS-IT--Management
Oct 27, 2008
6
US
I am using GM Premium 8.03, creating iif statement for the lookup.ini file. I have a list of 3 character codes to evaluate, and depending on which of these appears in the key4 field, i need to enter certain text in the Mergecodes field. I'm having trouble with "OR", adding more than one value in the logical expression.
For example the first one works, the second one returns nothing. How can I get a list of 6 different 3-character codes into this statement?
[Mergecodes]
Otherwise = &iif(left(Key4,3) = "ABT", "Tech", "") works fine

Otherwise = &iif(left(Key4,3) = "ABT" OR "MET" OR "GED"
or TOR" or "FRR" or "LKJ", "Tech", "") doesn't work

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top