how to shorten a case structure?

Tiemo Hollmann TB toolbook at kestner.de
Mon Jun 6 08:14:12 EDT 2011


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

 

 

 




More information about the use-livecode mailing list