The Magento Email Template If Statements aren\'t evaluating to true when I expect them to. Can someone tell me what\'s wrong? Take a look at the following code:
I was able to more or less accomplish this right in the template using {{depend}} template tags.
{{depend somevar}}
Print this if somevar evaluates to true
{{/depend}}
You will have to conjure up this variable in app/code/local/Mage/Sales/Model/Order.php in the methods like sendNewOrderEmail() and so forth.