switch myVar case "foo1" case "foo2" myFunction (last char of myVar) break ...
If that's what you mean? ~ Chris Innanen ~ Nonsanity On Mon, Jun 6, 2011 at 8:14 AM, Tiemo Hollmann TB <toolb...@kestner.de>wrote: > Hi, > > I just don't know if I don't see the obvious, or if this is the only way to > go. > > I have a switch structure, which looks in a shot form like this: > > Switch myVar > > case "foo1" > > myFunction 1 > > case "foo2" > > myFunction 2 > > etc. > > > > very regular 1 to 1, 2 to 2. Is there a way, with "do." or something like > that, to shorten it up to one single case with a variable? > > Thanks > > Tiemo > > > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode