IF function

General ShopSite user discussion

IF function

Postby GiftSpecialists » Sat Sep 02, 2006 9:40 am

Is there a way to test a variable for two or more values? Example, IF VAR = X or Y

Or do I just need to use an ELSE_IF for the second test?

Thanks for any help,
Rick,

www.GiftSpecialistsInc.com
www.WineGiftClub.com - Gifts for wine lovers
www.BeerOnTheWall.com - Gifts for beer lovers
GiftSpecialists
 
Posts: 130
Joined: Thu Aug 17, 2006 7:20 am
Location: Modesto, California

Postby robm » Sat Sep 02, 2006 12:46 pm

You would use an ELSE_IF for the second and subsequent tests. The IF statement only compares one value.
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut

Postby GiftSpecialists » Sun Sep 03, 2006 9:16 am

Thanks Rob, thats what I figured, but I'm always looking for a shortcut!
Rick,

www.GiftSpecialistsInc.com
www.WineGiftClub.com - Gifts for wine lovers
www.BeerOnTheWall.com - Gifts for beer lovers
GiftSpecialists
 
Posts: 130
Joined: Thu Aug 17, 2006 7:20 am
Location: Modesto, California


Return to User Forum

Who is online

Users browsing this forum: No registered users and 145 guests