Page 1 of 1

switch

Posted: Sat Sep 12, 2015 12:24 am
by monte
Is there any chance switch will be implemented as a control structure. Seeing so many else if's makes my brain hurt...

Re: switch

Posted: Sat Sep 12, 2015 2:11 pm
by Mikey
ya and in another certain control structure, all the "breaks" makes my head hurt, lol

Re: switch

Posted: Sat Sep 12, 2015 9:15 pm
by monte
Ha, I've been writing too much objective-c lately and I tried using break to exit a repeat loop the other day until I remembered exit repeat.

Re: switch

Posted: Fri Sep 18, 2015 2:24 pm
by dunbarx
@Monte.

Am I missing something or simply out of my depth? What do you mean
Is there any chance switch will be implemented as a control structure
Isn't it already? I am just now thinking about v.8, and want to know that LCS works like I am used to, however slowly I move into LCB.

Craig Newman

Re: switch

Posted: Fri Sep 18, 2015 2:27 pm
by trevordevore
Isn't it already?
Switch is not implemented in LiveCode Builder (yet?). LiveCode Script still works like you expect and has a switch statement.