xpp {

       /* Define the integer variable iVal and set its value to 50 */

       int    iVal = 50;

      

       /* This switch makes comparisons based on the value of iVal */

       switch(iVal) {

              (int) > 10 {

                     /* This code executes when the value of iVal is greater

                        than 10 when compared as an integer */

                     xout("\r\nIs 10");

              }

              (int) = 50 {

                     /* This code executes when the value of iVal is equal

                        to 50 when compared as an integer */

                     xout("\r\nIs 50");

              }

              default {

                     /* This code executes only when none of the comparisons

                        above have resulted in a true value */

                     xout("\r\nIs Default");

              }

       }

}