Re: can you reassign loop index?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 21814
interpreted = N
texte = On 12/14/1998 3:18 pm, Olin Lagon so noted...>Greetings, can a loop index be reassigned like this:>>[loop start=1&end=1000]> [showif condition=1]> [index]=800> [/showif]>[/loop]Although it ain't pretty, the following should do what you're looking for.[math show=f]offset=0[/math][loop start=1&end=1000][showif (some condition)][math show=f]offset=799[/math][/showif][math show=f]nuIndex=[index]+[offset][/math](some code, referring to [nuIndex] instead of [index])[showif [nuIndex]>999][break][/showif][/loop]Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Associated Messages, from the most recent to the oldest:
On 12/14/1998 3:18 pm, Olin Lagon so noted...>Greetings, can a loop index be reassigned like this:>>[loop start=1&end=1000]> [showif condition=1]> [index]=800> [/showif]>[/loop]Although it ain't pretty, the following should do what you're looking for.[math show=f]offset=0[/math][loop start=1&end=1000][showif (some condition)][math show=f]offset=799[/math][/showif][math show=f]nuIndex=[index]+[offset][/math](some code, referring to [nuIndex] instead of [index])[showif [nuIndex]>999][break][/showif][/loop]Rob MarquardtDesigner/Resident WireheadToast Design300 First Avenue North, Suite 150Minneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.com
Rob Marquardt
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Using Protection =) (2003)
Creating 404 Not Found pages (1999)
Problems getting parameters passed into email. (1997)
redirect tag (2004)
Using [Showif] tag. Mac (1997)
How do you cause a new window to appear behind the current (1999)
Proper file locations (1997)
WC TableGrinder (1997)
WC Database Format (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Drop Down Menus (2002)
[WebDNA] [WSC] WebDNA Development Summit (2014)
Vanity counter side note (1998)
emailer on Windows Beta 18 (1997)
[WebDNA] [BULK] Web Merchant Authorize net issues (2011)
taxTotal, grandTotal (1997)
[shownext] and descending order (1997)
Sorting LISTFILES (1997)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
For those of you not on the WebCatalog Beta... (1997)