[ic] ic tags question
Mike Heins
interchange-users@icdevgroup.org
Mon Dec 30 18:10:01 2002
Quoting Jeff Dafoe (jeff@badtz-maru.com):
>
> I don't think this is the most efficient way for me to accomplish this:
>
> [tmp itemcnt][calc][scratch itemcnt]+1[/calc][/tmp]
>
> How might that be better constructed?
Question is, what are you inside?
If you are inside an list, by far the best thing to do is
just use the [loop-increment] or [loop-count] thingies. If
you need a custom count, you would want
[tmpn itemcnt][/tmpn]
[loop ....]
[loop-calc] ++$Scratch->{itemcnt} [/loop-calc]
[/loop]
--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.513.523.7621 <mike@perusion.com>
Few blame themselves until they have exhausted all other possibilities.
-- anonymous