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:

Non-repeating Random Numbers - CORRECTION (2002) upgrade? (1997) WebCat2b12 - nesting [tags] (1997) FW: WebCat Contest (1998) month or year from date field in lineitems? (1998) Getting total number of items ordered (1997) Performance of this mailserver (2000) webcat method for waiting specific amount of time? (2000) WebCat2 - [format thousands] (1997) Server problem? (1998) WC Database Format (1997) Emailer Problem (1999) Simple way to create unique SKU (1997) Separate SSL Server (1997) Multiple prices (1997) [INCLUDE] Limitations (1998) ErrorMessages.db suggestion (1997) wecat crashing IIS 4 (2001) Greeting Card System (2000) WebCatalog as a ListServ (1998)