Re: [WebDNA] improvements

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111919
interpreted = N
texte = --Apple-Mail-CB83594A-9C4C-47E5-9C32-C12713152AE7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I was going to ask for [3wishes] tag, but there is that whole issue of wishi= ng for more wishes and whatnot, and endless loops are always a danger. > On Jan 15, 2015, at 5:03 PM, Dan Strong wrote: >=20 > Sounds like we just need the [readMyMind] and [doMyWorkForMe] tags and we'= ll be all set. >=20 > -Dan Strong > http://DanStrong.com >=20 >> On Thu, Jan 15, 2015 at 11:50 AM, Donovan Brooke wrote:= >> Yep =E2=80=94> >>=20 >>=20 >> On Jan 15, 2015, at 11:58 AM, iPhonzie@G wrote: >>=20 >> > [elseif] would be a great addition for situations where you have a numb= er of mutually exclusive conditions that are to complex for [switch]. I have= lots of code that looks like this: >> > >> > [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] >> > >> > This would be much nicer if I could write: >> > >> > [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] >> > >> > >> > This could similarly be addressed with an alternative form of switch/ca= se. One possibility would be if no parameters are in the [switch] tag, then [= if]-style comparisons could be put into each [case] tag: >> > >> > [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] >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list . To unsubscribe, E= -mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting:= support@webdna.us --Apple-Mail-CB83594A-9C4C-47E5-9C32-C12713152AE7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I was going to ask for [3wishes] tag, b= ut there is that whole issue of wishing for more wishes and whatnot, and end= less loops are always a danger.



On Jan 15, 2015, a= t 5:03 PM, Dan Strong <dan@danstrong= .com> wrote:

Sounds like we just need the [readMyMind] and [doMyWorkForMe] tags and w= e'll be all set.


On Thu, Jan 15, 2015 at 11:50 AM, Donovan Bro= oke <dbrooke@euca.us> wrote:
Ye= p  =E2=80=94>


On Jan 15, 2015, at 11:58 AM, iPhonzie@G <iphonzie@gmail.com> wrote:

> [elseif] would be a great addition for situations where you have a numb= er of mutually exclusive conditions that are to complex for [switch]. I have= lots of code that looks like this:
>
> [if (condition1)]
>       [then]
>               do stuff 1
>       [/then]
>       [else]
>               [if (condition2)]=
>                    &n= bsp;  [then]
>                    &n= bsp;          do stuff 2
>                    &n= bsp;  [/then]
>                    &n= bsp;  [else]
>                    &n= bsp;          [if (condition3)]
>                    &n= bsp;                  [then] >                    &n= bsp;                     &= nbsp;    do stuff 3
>                    &n= bsp;                  [/then] >                    &n= bsp;                  [else] >                    &n= bsp;                     &= nbsp;    do default stuff
>                    &n= bsp;                  [/else] >                    &n= bsp;          [/if]
>                    &n= bsp;  [/else]
>               [/if]
>       [/else]
> [/if]
>
> This would be much nicer if I could write:
>
> [if (condition1)]
>       [then]
>               do stuff 1
>       [/then]
>       [elseif (condition2)]
>               do stuff 2
>       [/elseif]
>       [elseif (condition3)]
>               do stuff 3
>       [/elseif]
>       [else]
>               do default stuff<= br> >       [/else]
> [/if]
>
>
> This could similarly be addressed with an alternative form of switch/ca= se. One possibility would be if no parameters are in the [switch] tag, then [= if]-style comparisons could be put into each [case] tag:
>
> [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]

------------------------= ---------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>= ;.
To unsubscribe, E-mail to: <talk-= leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
= --Apple-Mail-CB83594A-9C4C-47E5-9C32-C12713152AE7-- 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)
--Apple-Mail-CB83594A-9C4C-47E5-9C32-C12713152AE7 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I was going to ask for [3wishes] tag, but there is that whole issue of wishi= ng for more wishes and whatnot, and endless loops are always a danger. > On Jan 15, 2015, at 5:03 PM, Dan Strong wrote: >=20 > Sounds like we just need the [readMyMind] and [doMyWorkForMe] tags and we'= ll be all set. >=20 > -Dan Strong > http://DanStrong.com >=20 >> On Thu, Jan 15, 2015 at 11:50 AM, Donovan Brooke wrote:= >> Yep =E2=80=94> >>=20 >>=20 >> On Jan 15, 2015, at 11:58 AM, iPhonzie@G wrote: >>=20 >> > [elseif] would be a great addition for situations where you have a numb= er of mutually exclusive conditions that are to complex for [switch]. I have= lots of code that looks like this: >> > >> > [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] >> > >> > This would be much nicer if I could write: >> > >> > [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] >> > >> > >> > This could similarly be addressed with an alternative form of switch/ca= se. One possibility would be if no parameters are in the [switch] tag, then [= if]-style comparisons could be put into each [case] tag: >> > >> > [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] >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >=20 > --------------------------------------------------------- This message is s= ent to you because you are subscribed to the mailing list . To unsubscribe, E= -mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting:= support@webdna.us --Apple-Mail-CB83594A-9C4C-47E5-9C32-C12713152AE7 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
I was going to ask for [3wishes] tag, b= ut there is that whole issue of wishing for more wishes and whatnot, and end= less loops are always a danger.



On Jan 15, 2015, a= t 5:03 PM, Dan Strong <dan@danstrong= .com> wrote:

Sounds like we just need the [readMyMind] and [doMyWorkForMe] tags and w= e'll be all set.


On Thu, Jan 15, 2015 at 11:50 AM, Donovan Bro= oke <dbrooke@euca.us> wrote:
Ye= p  =E2=80=94>


On Jan 15, 2015, at 11:58 AM, iPhonzie@G <iphonzie@gmail.com> wrote:

> [elseif] would be a great addition for situations where you have a numb= er of mutually exclusive conditions that are to complex for [switch]. I have= lots of code that looks like this:
>
> [if (condition1)]
>       [then]
>               do stuff 1
>       [/then]
>       [else]
>               [if (condition2)]=
>                    &n= bsp;  [then]
>                    &n= bsp;          do stuff 2
>                    &n= bsp;  [/then]
>                    &n= bsp;  [else]
>                    &n= bsp;          [if (condition3)]
>                    &n= bsp;                  [then] >                    &n= bsp;                     &= nbsp;    do stuff 3
>                    &n= bsp;                  [/then] >                    &n= bsp;                  [else] >                    &n= bsp;                     &= nbsp;    do default stuff
>                    &n= bsp;                  [/else] >                    &n= bsp;          [/if]
>                    &n= bsp;  [/else]
>               [/if]
>       [/else]
> [/if]
>
> This would be much nicer if I could write:
>
> [if (condition1)]
>       [then]
>               do stuff 1
>       [/then]
>       [elseif (condition2)]
>               do stuff 2
>       [/elseif]
>       [elseif (condition3)]
>               do stuff 3
>       [/elseif]
>       [else]
>               do default stuff<= br> >       [/else]
> [/if]
>
>
> This could similarly be addressed with an alternative form of switch/ca= se. One possibility would be if no parameters are in the [switch] tag, then [= if]-style comparisons could be put into each [case] tag:
>
> [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]

------------------------= ---------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>= ;.
To unsubscribe, E-mail to: <talk-= leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.= webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
= --Apple-Mail-CB83594A-9C4C-47E5-9C32-C12713152AE7-- Stephen Reiss

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:

GREP for search - not replace (2004) DON'T use old cart file! (1997) WebDNA 6 (2004) [WebDNA] eCommerce System Release (2018) Dumb Question about Docs (1997) Wanted: More Math Functions (or, Can You Solve This?) (1997) Sorry WebDNA server not running ????? (2002) Cart dilemma (2003) Multiple catalog databases and showcart (1997) Introduction/Tutorial/QuickStart (1997) Questions To Answer (1997) Initiating NewCart (1997) [isfile] ? (1997) WebCat2final1 crashes (1997) Netscape v. IE (1997) Feature Request : Separate [search] and [founditems] (2002) A simple email page? (1999) WebCat2: Formulas.db question (1997) Dreamweaver Extensions for WC (2000) WebCat cannot handle compatible search parameters? (1997)