Re: how to not call a macro if the varialbe is null?
S Ahmed <[email protected]> Fri, 27 Dec 2013 17:35:22 -0500
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <CAG2rwuNF_=eOTbKh3F1=tqGdMexLffsajzDnkSF5tMXJj0geKA@mail.gmail.com> |
Also in the call to: <@u.listUsers users variable2 variable3 /> I want to make variable2 nullable, is that possible or it has to be a required param? On Fri, Dec 27, 2013 at 5:34 PM, S Ahmed <[email protected]> wrote: > 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