Re: help:missing value test (node??) is not working
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
I have to think that the mouse variable indeed always exists. Why are you sure it doesn't exist? Maybe it's the result of some XML query? Because then even if there is no matching node, the result exists, as it's an empty list of nodes. Thursday, April 15, 2010, 2:14:01 PM, Bilel AMMAR wrote: > Hello, > i have a problem with the missing value Test > Indeed, the test is always evaluating a true value > I tested the simple example of freemarker docs > http://freemarker.sourceforge.net/docs/dgui_template_exp.html#dgui_template_exp_missing_test > > <#if mouse??> > Mouse found > <#else> > No mouse found > </#if> ---->> the result should be > No mouse found > But always, i obtain "Mouse found"... i think the node?? test is > always evaluating true result even if the variable doesn't exist > > who have any idea for help? > thx -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev