I have a custom record with a field of type Integer. There is a default value of 0 set in the field definition (because I was having trouble with nulls). The value is updated nightly by a workflow, if needed. It is a stored value. I want to see if the value is greater than 15 using Freemarker in an email template. I tried the following: <#if (customrecord.custrecord330 gt 15)>
But I get an error upon saving the template that says: The only legal comparisons are between two numbers, two strings, or two dates.. Left hand operand is a com.netledger.templates.model.EmptyModel. Right hand operand is a freemarker.template.SimpleNumber.
I did some digging on this forum and found a post that suggested using ?number as follows:
<#if (customrecord.custrecord330?number gt 15)>
But now I get this error upon saving: "expecting a number here found: "
This seems pretty straightforward to me. I just need to do a simple comparison of an integer field. Anyone have any ideas what I am doing wrong here?