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 |
Re: If Statements
If you want to exclude anything where the first 8 characters are reseller, you could try:
{if $user_membership|substr:0:7 ne "Reseller"} |
All times are GMT -8. The time now is 02:18 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.