Back to table

Case selection

The following is a valid µOCCAM program. Checks value of letter with s,i,m,p,l, and e. Sets variable easy to true is letter matches.

Program file: /public/cs3/web/ipptests/selection.accept
CASE letter
   's', 'i', 'm', 'p', 'l', 'e'
     easy := TRUE
   ELSE
     easy := FALSE