how to not call a macro if the varialbe is null?
S Ahmed <[email protected]> Fri, 27 Dec 2013 17:34:20 -0500
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <CAG2rwuMxVkajOZzeQi+9mOQoh5uf6M9WO=G_e+S+tNSyE+gm=A@mail.gmail.com> |
I am calling a macro like this:
<@u.listUsers users variable2 variabe3 />
And inside of listUsers.ftl I have:
..
..
<@v.someThing varaible2 />
Now say variable2 is null, is it possible to do soething like:
if variable2 != null
{
<@v.someThing variable2 />
}
meaning, don't call this macro if the varialbe is null.
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user