[stringtemplate-interest] checking in IF clause if attribue exists

Terence Parr parrt at cs.usfca.edu
Tue Jan 25 11:43:27 PST 2011


On Jan 24, 2011, at 4:38 AM, Peter Knego wrote:

> I'd like to do something like this:
> 
> $if(attr)$ something $endif$

if(attr) is checking "is defined"; it throws an exception? shouldn't hear a peep

ter
> 
> If 'attr' is not defined it throws an error. Is there a way to check
> attribute is defined?
> 
> Peter
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list