

  '==============
  'C STYLE SWITCH
  '==============

  uses console

  int i
  for i=0 to 4
  print "i=" i tab
  switch i {

    case 0
    case 1
    case 2
      print "case 2 "
      break
    case 4
      print "case 4 "
      break
    default
    print "default "

  }'end switch
  print cr
  next

  wait

/*
RESULTS:
========
with 'break's
i=0      case else
i=1      case else
i=2      case 2
i=3      case else
i=4      case 4

without 'break's
i=0     case else
i=1     case else
i=2     case 2 case else
i=3     case else
i=4     case 4 case else
*/


  