IF statement

Post Reply
dakini
Posts: 64
Joined: Mon May 27, 2013 11:11 am

IF statement

Post 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?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: IF statement

Post by admin »

Sorry we don't have such tag

You can use regular php statements

<?php
if ('<!--CATEGORY_NAME-->' == 'CHINESE') {
do something
}
?>
Don't forget to run script update
Post Reply