Форуми / Cotonti / Support / CoTemplate var +num question

Using if statements in the template

fade2k
#1 02.10.2012 01:49

I'm trying to take an empty var that is "0" or a null value and add a one to it so I can use it in an if statement as to show something only one time. The simple i++ with an IF var == 0. I'm not seeing how I would assign a var with a value or if its even possible to create one in the templat system itself?

Is there a function for counting the number of results of a row or a tag?

Thanks!

Ughh, Nevermind.. I found the tag LOL. It was {PAGE_ROW_NUM} (first time I saw it, I mixed it up with ID). I'm loving the debugging tags display!

- Be Kind, Please Rewind -