switch

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

switch

Post by monte » Sat Sep 12, 2015 12:24 am

Is there any chance switch will be implemented as a control structure. Seeing so many else if's makes my brain hurt...
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: switch

Post by Mikey » Sat Sep 12, 2015 2:11 pm

ya and in another certain control structure, all the "breaks" makes my head hurt, lol

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: switch

Post by monte » Sat Sep 12, 2015 9:15 pm

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.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: switch

Post by dunbarx » Fri Sep 18, 2015 2:24 pm

@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

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: switch

Post by trevordevore » Fri Sep 18, 2015 2:27 pm

Isn't it already?
Switch is not implemented in LiveCode Builder (yet?). LiveCode Script still works like you expect and has a switch statement.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

Post Reply

Return to “LiveCode Builder”