I have a custom numeric field: NumberOfOppsWon__c. I tried to put in some conditional logical in my email template based on its value being greater than zero.
<apex:outputPanel rendered="{!IF(relatedTo.NumberOfOppsWon__c > 0, true, false)}">
...
</apex:outputPanel>
When I try to save the email template, I get:
Error occurred trying to load the template for preview: The value 'null' is not valid for operator '>'.. Please try editing your markup to correct the problem.
Any ideas, tips?