spaces around the operators are necessary in SMARTY! see http://www.smarty.net/docsv2/en/language.function.if.tpl and http://www.modified-shop.org/forum/index.php?topic=20615.msg192340#msg192340