Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript switch test per case

switch(true) { 
   case if(constant1 == 1): { 
      //statements; 
      break; 
   } 
   case if(constant2 == 2): { 
      //statements; 
      break; 
   } 
   default: { 
      //statements; 
      break; 
   } 
} 
 
PREVIOUS NEXT
Tagged: #typescript #switch #test #case
ADD COMMENT
Topic
Name
2+7 =