in reply to If Condition in Template file

[ You'll save yourself some trouble if you just wrap your code and data in <c>...</c> tags. ]

Use [% IF %]. There's an example in Directives page of the manual.

Update: Wait, when I saw Template in uppercase, I thought you were using popular module Template, but now I'm not so sure. What template system are you using?