Forum Discussion
AdamN
12 years agoKhoros Oracle
Hi peterlu,
Freemarker actually has a directive for testing whether a variable is a number, so you may want to explore that as an alternate to using attempt/recover. For example:
<#if test?is_number> ... </#if>
Reference materials available here:
http://freemarker.sourceforge.net/docs/ref_builtins_expert.html#ref_builtin_isType
The behavior you describe definitely sounds odd, but there'd probably need to be some additional investigation to determine what is the expected behavior. If you believe this is a bug, I'd suggest filing a case so that it can get on the Support team's radar and be tracked through resolution.
Related Content
- 5 months ago
- 2 years ago
- 2 years ago