On Feb 24, 2009, at 6:48 PM, YingAnnie wrote:
> > > > Hi everyone, > > I want to use if else in the StringTemplateGroup,if (x ="org") print > 1234 else print 5678, but <if(x=="org")> doesnot work. Correct. ST does not allow you to do any logic computations in the view. You must do the computation in the model and pass the result to the template. this philosophy is explained in a number of places on the website and the wiki. Ter List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
