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:
Max Record length restated as maybe bug (1997)
Non-Cart Files in Shopping Cart Folder (1997)
Separate SSL Server (1997)
problem with text A (2000)
Balancing randomness (2000)
WebCat2: Items xx to xx shown, etc. (1997)
WebCatalog losing Data (2001)
Using [random] (1999)
Security for malls with different webmasters (1998)
A multi-processor savvy WebCatalog? (1997)
Max Record length restated as maybe bug (1997)
Questions! (2000)
[WebDNA] WebDNA for Windows Newbie Questions (2008)
WebCat2b15MacPlugin - showing [math] (1997)
[WebDNA] Secure Cookies (2009)
autosensing lanague selection (1997)
One per customer (2000)
Help! WebCat2 bug (Ben's input) (1997)
WebCat2: multiple currency support (1997)
The IBC root beer has arrived! (1997)