Smarty code not working
The problem is that the space in the if-statement is &amp;nbsp; rather than a normal space. For this reason, it's worth writing your smarty statements while viewing the Source code in the template editor.