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
|