Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Error in template creation when using Freemarker to check a number value in #if condition
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.