Re: [WebDNA] improvements

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111912
interpreted = N
texte = Yep =97> On Jan 15, 2015, at 11:58 AM, iPhonzie@G wrote: > [elseif] would be a great addition for situations where you have a = number of mutually exclusive conditions that are to complex for = [switch]. I have lots of code that looks like this: >=20 > [if (condition1)] > [then] > do stuff 1 > [/then] > [else] > [if (condition2)] > [then] > do stuff 2 > [/then] > [else] > [if (condition3)] > [then] > do stuff 3 > [/then] > [else] > do default stuff > [/else] > [/if] > [/else] > [/if] > [/else] > [/if] >=20 > This would be much nicer if I could write: >=20 > [if (condition1)] > [then] > do stuff 1 > [/then] > [elseif (condition2)] > do stuff 2 > [/elseif] > [elseif (condition3)] > do stuff 3 > [/elseif] > [else] > do default stuff > [/else] > [/if] >=20 >=20 > This could similarly be addressed with an alternative form of = switch/case. One possibility would be if no parameters are in the = [switch] tag, then [if]-style comparisons could be put into each [case] = tag: >=20 > [switch] > [case (condition1)] > do stuff 1 > [/case] > [case (condition2)] > do stuff 2 > [/case] > [case (condition3)] > do stuff 3 > [/case] > [default] > do default stuff > [/default] > [/switch] Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] improvements (Stuart Tremain 2015)
  2. Re: [WebDNA] improvements (=?utf-8?Q?iPhonzie=40G?= 2015)
  3. Re: [WebDNA] improvements (Tom Duke 2015)
  4. Re: [WebDNA] improvements (christophe.billiottet@webdna.us 2015)
  5. Re: [WebDNA] improvements (Jym Duane 2015)
  6. Re: [WebDNA] improvements (christophe.billiottet@webdna.us 2015)
  7. Re: [WebDNA] improvements (=?utf-8?Q?iPhonzie=40G?= 2015)
  8. Re: [WebDNA] improvements (Brian Burton 2015)
  9. Re: [WebDNA] improvements (Dan Strong 2015)
  10. Re: [WebDNA] improvements (Stephen Reiss 2015)
  11. Re: [WebDNA] improvements (=?utf-8?Q?iPhonzie=40G?= 2015)
  12. Re: [WebDNA] improvements (Kenneth Grome 2015)
  13. Re: [WebDNA] improvements (Dan Strong 2015)
  14. Re: [WebDNA] improvements (Donovan Brooke 2015)
  15. Re: [WebDNA] improvements (Matthew Perosi 2015)
  16. Re: [WebDNA] improvements (Kenneth Grome 2015)
  17. Re: [WebDNA] improvements (=?utf-8?Q?iPhonzie=40G?= 2015)
  18. Re: [WebDNA] improvements ("Psi Prime Inc, Matthew A Perosi " 2015)
  19. Re: [WebDNA] improvements (christophe.billiottet@webdna.us 2015)
  20. [WebDNA] improvements (Donovan Brooke 2015)
Yep =97> On Jan 15, 2015, at 11:58 AM, iPhonzie@G wrote: > [elseif] would be a great addition for situations where you have a = number of mutually exclusive conditions that are to complex for = [switch]. I have lots of code that looks like this: >=20 > [if (condition1)] > [then] > do stuff 1 > [/then] > [else] > [if (condition2)] > [then] > do stuff 2 > [/then] > [else] > [if (condition3)] > [then] > do stuff 3 > [/then] > [else] > do default stuff > [/else] > [/if] > [/else] > [/if] > [/else] > [/if] >=20 > This would be much nicer if I could write: >=20 > [if (condition1)] > [then] > do stuff 1 > [/then] > [elseif (condition2)] > do stuff 2 > [/elseif] > [elseif (condition3)] > do stuff 3 > [/elseif] > [else] > do default stuff > [/else] > [/if] >=20 >=20 > This could similarly be addressed with an alternative form of = switch/case. One possibility would be if no parameters are in the = [switch] tag, then [if]-style comparisons could be put into each [case] = tag: >=20 > [switch] > [case (condition1)] > do stuff 1 > [/case] > [case (condition2)] > do stuff 2 > [/case] > [case (condition3)] > do stuff 3 > [/case] > [default] > do default stuff > [/default] > [/switch] Donovan Brooke

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:

WebCat2.0 acgi vs plugin (1997) linetiems in thankyou.tpl (1997) PIXO support (1997) RE: [WebDNA] WebDNA not interpreting for directory (2014) page redirect in webDNA (1997) URL for Discussion Archive (1997) WebCat2final1 crashes (1997) Is there an easier way? (1998) CommandSecurity? (1997) [OT] Theiving B*****ds (2004) maximu values for sendmail! (1997) Hiding HTML and page breaks (1997) Can I invoke an ssi plugin from within a webcat page (1997) This is a Test, sorry (1999) [OT] CSS and SSI books (2004) Need something like [listchars] ... (2000) synching databases on multiple servers (1997) WebCat2b15MacPlugin - showing [math] (1997) WebCatalog 2.0 b 15 mac (1997) credit card (1997)