Re: [WebDNA] improvements

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111914
interpreted = N
texte = --001a1134e72e8074ab050cb65cc9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sounds like we just need the [readMyMind] and [doMyWorkForMe] tags and we'll be all set. -Dan Strong http://DanStrong.com On Thu, Jan 15, 2015 at 11:50 AM, Donovan Brooke wrote: > Yep =E2=80=94> > > > 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: > > > > [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/case. 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 . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > --001a1134e72e8074ab050cb65cc9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sounds like we just need the [readMyMind] and [doMyWorkFor= Me] tags and we'll be all set.

-Dan Strong<= div>http://DanStrong.com=

On Thu, Jan 15, 2015 at 11:50 AM, Donovan Br= ooke <dbrooke@euca.us> wrote:
Yep=C2=A0 =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 num= ber of mutually exclusive conditions that are to complex for [switch]. I ha= ve lots of code that looks like this:
>
> [if (condition1)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[then]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 1
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/then]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[else]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[if (condition2)= ]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0[then]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 2
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0[/then]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0[else]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[if (condition3)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=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 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[/if]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/else]
> [/if]
>
> This would be much nicer if I could write:
>
> [if (condition1)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[then]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 1
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/then]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[elseif (condition2)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 2
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/elseif]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[elseif (condition3)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 3
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/elseif]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[else]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do default stuff=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/else]
> [/if]
>
>
> This could similarly be addressed with an alternative form of switch/c= ase. One possibility would be if no parameters are in the [switch] tag, the= n [if]-style comparisons could be put into each [case] tag:
>
> [switch]
> [case (condition1)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 1
> [/case]
> [case (condition2)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 2
> [/case]
> [case (condition3)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 3
> [/case]
> [default]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0do default stuff
> [/default]
> [/switch]

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

--001a1134e72e8074ab050cb65cc9-- 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)
--001a1134e72e8074ab050cb65cc9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sounds like we just need the [readMyMind] and [doMyWorkForMe] tags and we'll be all set. -Dan Strong http://DanStrong.com On Thu, Jan 15, 2015 at 11:50 AM, Donovan Brooke wrote: > Yep =E2=80=94> > > > 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: > > > > [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/case. 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 . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us > --001a1134e72e8074ab050cb65cc9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Sounds like we just need the [readMyMind] and [doMyWorkFor= Me] tags and we'll be all set.

-Dan Strong<= div>http://DanStrong.com=

On Thu, Jan 15, 2015 at 11:50 AM, Donovan Br= ooke <dbrooke@euca.us> wrote:
Yep=C2=A0 =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 num= ber of mutually exclusive conditions that are to complex for [switch]. I ha= ve lots of code that looks like this:
>
> [if (condition1)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[then]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 1
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/then]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[else]
>=C2=A0 =C2=A0 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 =C2=A0 =C2=A0do stuff 2
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/elseif]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[elseif (condition3)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 3
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/elseif]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[else]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0do default stuff=
>=C2=A0 =C2=A0 =C2=A0 =C2=A0[/else]
> [/if]
>
>
> This could similarly be addressed with an alternative form of switch/c= ase. One possibility would be if no parameters are in the [switch] tag, the= n [if]-style comparisons could be put into each [case] tag:
>
> [switch]
> [case (condition1)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 1
> [/case]
> [case (condition2)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 2
> [/case]
> [case (condition3)]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0do stuff 3
> [/case]
> [default]
>=C2=A0 =C2=A0 =C2=A0 =C2=A0do default stuff
> [/default]
> [/switch]

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

--001a1134e72e8074ab050cb65cc9-- Dan Strong

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:

WebCat b13 CGI -shownext- (1997) Trouble with formula.db (1997) [WebDNA] Barcode (2014) WebCat2 - [format thousands] (1997) [WebDNA] Nested Searches (2013) Download URL & access on the fly ? (1997) Alternating colors (1997) template security preferences????? (1998) PSC recommends what date format yr 2000??? (1997) Multi Actions (1999) Possible Bug in 2.0b15.acgi (1997) Spiders (2000) date formatting for CC card expiration date check (1998) Mass deletion of records (2006) Searching multiple fields (1997) WebDNA Solutions ... sorry! (1997) Strange ThisURL under Linux (2000) For those of you not on the WebCatalog Beta... (1997) Error -108 (1997) SetHeader not Working (2006)