TypeScript -Switch -Test pro Fall

switch(true) { 
   case if(constant1 == 1): { 
      //statements; 
      break; 
   } 
   case if(constant2 == 2): { 
      //statements; 
      break; 
   } 
   default: { 
      //statements; 
      break; 
   } 
} 
Cute Caterpillar