default.bmx 407 B

12345678910111213
  1. Rem
  2. Default is used in a Select block to mark a code section that is executed if all prior Case statements fail.
  3. End Rem
  4. a$=Input("What is your favorite color?")
  5. a$=lower(a$) 'make sure the answer is lower case
  6. Select a$
  7. case "yellow" Print "You a bright and breezy"
  8. case "blue" Print "You are a typical boy"
  9. case "pink" Print "You are a typical girl"
  10. default Print "You are quite unique!"
  11. End Select