[stringtemplate-interest] Is $if()$ needed?

Roman Odaisky roma at qwertty.com
Mon Aug 18 12:56:37 PDT 2008


> > So $if$ is only syntactic sugar for large templates to avoid
> > building fences
> > of braces.
>
> Yeah, and elseif is nice

Elseif:

$a:{IF};null=b:{ELSEIF};null={ELSE}$

(doesn’t work, but could have)


Or with your recent addition:

$first([a:{IF}, b:{ELSEIF}, {ELSE}])$

(should work)


-- 
WBR
Roman.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2286 bytes
Desc: not available
Url : http://www.antlr.org:8080/pipermail/stringtemplate-interest/attachments/20080818/09b8116f/attachment.bin 


More information about the stringtemplate-interest mailing list