Re: [switch][case]
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57766
interpreted = N
texte = On 11/5/04 11:51 PM, "Jesse Proudman"
wrote:> [switch value=3D[x]]> [case value=3D1]> One> [/case]> [loop start=3D1&end=3D5]> [case value=3D[index]]> [index]> [/case]> [/loop]> [/switch]>=20> If x is 1, it will display:>=20> One1>=20> but I really just want to break out and only display One.I dont think you can do a loop around a case. Even if that works, then yourexample will of course show "one1" because the case is 1 and it is also suc=hinside the loop because the "next" case evaluates to one, also.Maybe you can set the loop before your case statement and then evaluate wit=ha variable?Nitai--=20Tools to energize your businessWeb Content Management =ABRedakto=BB & eBusiness SystemsComputerOil=AE AGDammstrasse 75400 Baden / SwitzerlandTelefon +41 (0)844 44 55 66info@computeroil.comhttp://computeroil.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
On 11/5/04 11:51 PM, "Jesse Proudman" wrote:> [switch value=3D[x]]> [case value=3D1]> One> [/case]> [loop start=3D1&end=3D5]> [case value=3D[index]]> [index]> [/case]> [/loop]> [/switch]>=20> If x is 1, it will display:>=20> One1>=20> but I really just want to break out and only display One.I dont think you can do a loop around a case. Even if that works, then yourexample will of course show "one1" because the case is 1 and it is also suc=hinside the loop because the "next" case evaluates to one, also.Maybe you can set the loop before your case statement and then evaluate wit=ha variable?Nitai--=20Tools to energize your businessWeb Content Management =ABRedakto=BB & eBusiness SystemsComputerOil=AE AGDammstrasse 75400 Baden / SwitzerlandTelefon +41 (0)844 44 55 66info@computeroil.comhttp://computeroil.com-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Nitai @ ComputerOil"
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:
Large founditems loops (2000)
WebCat2: Found Items syntax, etc. (1997)
NetSplat and WebCat2 (1997)
NT or Mac (1997)
Converting characters to numbers ... (1997)
ShowIf variables (1997)
FlushDatabase Suggestion (1998)
removelineitems (2000)
WC Database Format (1997)
Separate SSL Server (1997)
PCS Frames (1997)
[WebDNA] listcookie options (2011)
question: back button prevention (1997)
Showing specific [cart] contents (1998)
[isfile] ? (1997)
Permission denied? (2004)
How to implement 'email to a friend' feature? (2002)
form data submission gets truncated (1997)
WebCat2b15MacPlugin - showing [math] (1997)
WebCat2 - storing unformatted date data? (1997)