[ic] modifying item-increment

Mike Heins mheins@redhat.com
Thu, 19 Apr 2001 17:06:44 -0400


Quoting Russ Mann (tech@khouse.org):
> Hello List,
> 
> Is there any way in the [search-list] loop to modify the [item-increment]
> variable?  I have some of these:
> [item-next][calc]return 1 if '[item-field inactive]' ==
> '1'[/calc][/item-next]
> which causes the increment to go like this sometimes.
> 
> 1. 2. 4. 5. 7. 10.
> 
> If I could do something like $item_ncrement--; in the item-next routine, it
> would fix everything.  I've looked around in the source, but couldn't figure
> out how to do this.
> 

Easiest is:

    [calc] ++$tmp_increment [/calc] 

-- 
Red Hat, Inc., 131 Willow Lane, Floor 2, Oxford, OH  45056
phone +1.513.523.7621 fax 7501 <mheins@redhat.com>

I don't want to get to the end of my life and find I have just
lived the length of it. I want to have lived the width of it as
well. -- Diane Ackerman