autodoc.git / traditional_manual / chapter_2.html

version» Context lines:

autodoc.git/traditional_manual/chapter_2.html:84:    break;       case constant2:    statement2;    break;       case constant3 .. constant4:    statement3;    break;    +  case constant5 +  case constant6: +  statement4; +  // Fallthrough +     default:    statement5;   }   </pre><p></p>   <p>As you can see, a switch statement is a bit more complicated than an   if statement. It is still fairly simple however. It starts by evaluating   the expression it then searches all the <tt>case</tt> statements in the   following block. If one is found to be equal to the value returned by   the expression, Pike will continue executing the code directly following   that <tt>case</tt> statement. When a <tt>break</tt> is encountered Pike