Interchange Developer Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] ic tags question



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


Search for: Sort by: