sumit
5/27/2019 - 7:45 AM

switch statement

var index = 10
// if anyof the case if True it will not go down below that case 
switch index {
   case 100  :
      println( "Value of index is 100")
   case 10,15  :
      println( "Value of index is either 10 or 15")
   case 5  :
      println( "Value of index is 5")
   default :
      println( "default case")
}