seems to meny If

liamlambert liamlambert at mac.com
Thu Nov 24 21:52:21 EST 2005


	
how do I write this in a switch statement or is there a better way
to write it

if it contains JK then send mouseUp to button "NextTrack"
     if it contains AB then send mouseUp to button "NextTrack"
     if it contains JL then send mouseUp to button "playpause"
     if it contains JM then send mouseUp to button "back"
     if it contains GK then send mouseUp to button "1"
     if it contains HK then send mouseUp to button "2"
     if it contains IK then send mouseUp to button "3"
     if it contains GL then send mouseUp to button "4"
     if it contains HL then send mouseUp to button "5"
     if it contains IL then send mouseUp to button "6"
     if it contains GM then send mouseUp to button "7"
     if it contains HM then send mouseUp to button "8"
     if it contains IM then send mouseUp to button "9"
     if it contains HN then send mouseUp to button "10"
     if it contains "IN" then send mouseUp to button "11"
     if it contains GN then send mouseUp to button "12"

thanks
Liam L.




More information about the use-livecode mailing list