[stringtemplate-interest] Expressions in $if(...)$ statements.

Terence Parr parrt at cs.usfca.edu
Thu May 14 18:55:09 PDT 2009


On May 14, 2009, at 6:53 PM, Igor Katrayev wrote:
> > 1. Boolean operators in if() statements, for example:
> >
> > $if(someBoolValue AND someOtherBoolValue)$ …
> >             …
> > $endif$
> >
> > Is this possible?
>
> not currently...I have to do nested IF now, which is effectively an
> AND...in new version of ST I think it will be alllowed.
> YAHOOOOOO!

I'll take that as a +1 :)

>
> It's a slippery slope. can't really allow logic in expressions
> involving values.
> In JSF expressions it works pretty well. The approach is very  
> similar to stringtemplate.

I think we need a way to ask about length and shape of data structures  
but w/o free form comparing of values :)

Ter


More information about the stringtemplate-interest mailing list