Monday, November 2, 2015

X++: write multiple cases together

Multiple Cases in Switch:


switch (value)
{
   case 1:
   case 2:
   case 3:
      //do some stuff
      break;
   case 4:
   case 5:
   case 6:
      //do some different stuff
      break;
   default:
       //default stuff
      break;
}
More info

No comments:

Post a Comment

Table browser URL in D365FO

Critical Thinking icon icon by Icons8