Forums / Cotonti / Core Labs / Archive / Logic blocks for xtemplate

GHengeveld
#13254 2009-06-17 06:48
I think the suggested way of using IF/ELSE statements is great. I've been missing this for a long time. My main use would be in tables, for example users.details.tpl. There's no use in displaying a table row if its value isn't set. It's much nicer to just leave out the entire row. It will just make things much much cleaner in the end and will prevent having to write lots of code for a plugin.

I say go for it!