Main menu puzzle, Klaus

Mark Wieder mwieder at ahsoftware.net
Sat Feb 18 21:19:05 EST 2006


Thomas-

Saturday, February 18, 2006, 12:04:45 PM, you wrote:

> switch colorBall
>         case "Blue"
>                 answer "Blue" with "OK"
>         break
>         case "Red"
>                 answer "Red" with "OK"
>         break
>         case "Green"
>                 answer "Green" with "OK"
>         break
>         default
>                 answer "None" with "OK"
> end switch

Or...

switch colorball
  case "Blue"
  case "Red"
  case "Green"
    break
  default
    put "None" into colorball
end switch
answer colorball with "OK"

-- 
-Mark Wieder
 mwieder at ahsoftware.net




More information about the use-livecode mailing list