Page 1 of 1

IF statement

Posted: Sat Jun 15, 2013 8:43 pm
by dakini
Im tring to make a templte using if statement but i fail :)

I used this syntax:
<!--IF CATEGORY_NAME == CHINESE--><s><img src="/img/ch.png" alt="chinese" /></s><!--END IF-->
But i get error in template, unexpected "}" .....

Can you point me to the right direction please?

Re: IF statement

Posted: Mon Jun 17, 2013 8:38 am
by admin
Sorry we don't have such tag

You can use regular php statements

<?php
if ('<!--CATEGORY_NAME-->' == 'CHINESE') {
do something
}
?>