Thread: If Statements
View Single Post
  #1  
Old 05-20-2009, 10:55 AM
 
1day2004 1day2004 is offline
 

Senior Member
  
Join Date: Dec 2004
Posts: 115
 

Default If Statements

I know you can use eq (equals) and ne (not equals) for if statements.

Is there also a method for checking to see if it 'contains' a certain text?

Example:
{if $user_membership ne "Reseller 20% Discount" and $user_membership ne "Reseller 25% Discount" and $user_membership ne "Reseller 30% Discount" and $user_membership ne "Reseller 35% Discount"}

'Reseller' is common with all these membership types.

Is it possible to simplify this code?

Thanks
__________________
Version 4.0.8 Live
Reply With Quote