StringTemplate conditional statement can't support similar id>0? -


Recently I use string templates, I noticed that StringTemplate can not support complex conditional, same values> 1 or value = "menu" etc.

Who can give me advice to work? Thank you. Thank you.

The string template does not deliberately support complicated conditions. The thinking is that if you need that argument, then you are breaking strict enforcement of model-visual separation. Instead, use the template variables that represent the complex situation of you that you are trying to represent, and in turn, or use a method that calculates the correct result.


Comments