View Single Post
Old 04-13-2005, 01:38 PM   #7 (permalink)
Dr John
The Contributor
 
Join Date: Apr 2005
Location: Kent, UK
Posts: 54
Thanks: 0
Dr John is on a distinguished road
Default

ShadowWind, if you look three posts above yours you'll see basically the same thing, but without the extra step of finding the value of $j (which should start with $j=1 somewhere outside the if construction to seed the initial value). And several of the other posts use variants of the toggle technique, eg NotteScura's method.
Dr John is offline  
Reply With Quote