Re: Comparison Issue
Daniel Dekany <[email protected]> Thu, 28 Jan 2016 02:40:44 +0100
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <[email protected]> |
If it's a number then you need "record.quantity == 14". The others (?size an ?length) should give you an error, as number has no size or length. Do they not? Something strange is going on there... do they suppress FreeMarker errors and output nothing? If quantity is a string that looks like a number, then you should also get an error (for comparing a string to a number), but then you could use "record.quantity?number == 14". (BTW, you can easily try these scenarios on http://freemarker-online.kenshoo.com/) Wednesday, January 27, 2016, 11:17:05 PM, MG 2016 wrote: > Thanks for getting back. > > I am still trying to work out the exact type of quantity. I assumed it was > an int because the out put on the form is always an int. I am trying to > generate a PDF within NetSuite ERP. > > None of these seem to work for me. But I can see the text if I use != > > <#if record.quantity?size ==14>TEST</#if> > <#if record.quantity?length==14>TEST</#if> > <#if record.quantity ==14>TEST</#if> > > > > -- > View this message in context: > http://freemarker.624813.n4.nabble.com/Comparison-Issue-tp4655606p4655611.html > Sent from the freemarker-devel mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Site24x7 APM Insight: Get Deep Visibility into Application Performance > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month > Monitor end-to-end web transactions and take corrective actions now > Troubleshoot faster and improve end-user experience. Signup Now! > http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 > _______________________________________________ > FreeMarker-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freemarker-devel > -- Thanks, Daniel Dekany ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140