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:

applet example (1997) HELP WITH DATES (1997) Thanks ! (1997) FM PRO Compatibility Issue - Single Database w/o Conversions (1997) final on include (1997) Can I invoke an ssi plugin from within a webcat page (1997) How update the file: products.db (2000) [LOOKUP] (1997) [WebDNA] WebDNA Sciprt for Zipping files? (2012) Running WebCat from a CD-ROM (1997) Wireless WebDNA available today! (2000) PCS Emailer's role ? (1997) [WebDNA] Sorting questions (2009) RE: Include (1998) WedDNA Codeless Language Module file (2004) [ShowNext] feature in 2.0 (1997) WebCat2 several catalogs? (1997) Search returns all, not 20 (1997) Just made store and move file from webcatalog......... (2000) OT JavaScript question (1999)