=--Apple-Mail-CB83594A-9C4C-47E5-9C32-C12713152AE7-- Associated Messages, from the most recent to the oldest:Sounds like we just need the [readMyMind] and [doMyWorkForMe] tags and w=e'll be all set.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list-Dan StrongOn 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.To unsubscribe, E-mail to: archives: http://mail.=webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
|
=--Apple-Mail-CB83594A-9C4C-47E5-9C32-C12713152AE7-- Stephen ReissSounds like we just need the [readMyMind] and [doMyWorkForMe] tags and w=e'll be all set.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list-Dan StrongOn 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.To unsubscribe, E-mail to: archives: http://mail.=webdna.us/list/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
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...