<xpp>

       <!-- Define the integer variable iVal and set its value to 50 -->

       <var type="int" name="iVal">50</var>

       <!-- This switch makes comparisons based on the value of iVal -->

       <switch>

              <item>

                     <eval object="iVal"/>

              </item>

              <case>

                     <value op="&gt;" type="int">10</value>

                     <!-- This code executes when the value of iVal is greater

                        than 10 when compared as an integer -->

                     <xout processcode="true">\r\nIs 10</xout>

              </case>

              <case>

                     <value op="=" type="int">50</value>

                     <!-- This code executes when the value of iVal is equal

                        to 50 when compared as an integer -->

                     <xout processcode="true">\r\nIs 50</xout>

              </case>

              <default>

                     <!-- This code executes only when none of the comparisons

                        above have resulted in a true value -->

                     <xout processcode="true">\r\nIs Default</xout>

              </default>

       </switch>

</xpp>