how to change context view (preview) format

rjshelq
Posts: 75
Joined: Thu Nov 17, 2005 3:25 pm

how to change context view (preview) format

Post by rjshelq »

OK thanks guys. How can I look at "future" array indexes while in a loop?

For example, in the code which Kai provided, there is a loop called <loop $hitOffsets> which is happily going through each value of $hitOffsets. If I'm on the Nth time through that loop, how can I examine the (N+1) value of $hitOffsets ?
User avatar
mark
Site Admin
Posts: 5514
Joined: Tue Apr 25, 2000 6:56 pm

how to change context view (preview) format

Post by mark »

You can't look ahead as such. You'll probably have to loop over everything twice, first to decide what to do then to do it.
Post Reply