|
From: Sook J. <so...@ya...> - 2005-08-12 19:55:44
|
Hello, I tried a bit weird code as below and it worked. [% FOREACH a=object.aliases %] some url=[% a.alias %] [% END %] [% IF a.alias == '' %] some url=[% object.feature_name %] [% END %] Thanks, Sj --- Ken Youens-Clark <ky...@gm...> wrote: > On Aug 12, 2005, at 12:16 PM, Sook Jung wrote: > > > Eventually what I want to do is to use feature > name in > > the url when aliases doesn't exist, and use > aliases > > when they do. > > > > [% IF some condition %] ## if aliases exist > > [% FOREACH id=object.aliases %] > > some url=[% id %] > > [% END %] > > [% ELSE %] > > some url=[% object.feature_name %] > > [% END %] > > > > If it's possible, I want to include map_id in the > IF > > clause so that I can restrict this into some > selected > > maps. > > What about this? > > [% IF object.aliases.size > 0 %] > [% FOREACH a IN object.aliases %] > some url=[% a.alias %] > [% END %] > [% ELSE %] > some url=[% object.feature_name %] > [% END %] > > ky > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |