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:

date (1999) Problem (1997) Shopping cart not being assigned (1999) typhoon... (1997) PC Auth Hub+Merchant (1998) Formulas.db + Users.db (1997) Max Record length restated as maybe bug (1997) WebCat2: multiple currency support (1997) Change in Host? (1999) RE: Can't get appendfile to work (1997) List Address Changed! (1998) Cybersource and WebCat ... again (2000) WC2.0 Memory Requirements (1997) Sorting Numbers (1997) Lock out multiple users with same password? (1999) Upload and WebCat (1998) ShowIf variables (1997) A multi-processor savvy WebCatalog? (1997) Setting Lineitems (2005) [SearchString] usage (1997)