title: if-else conditional block in visualforce
body: <p>I had used c:if, c:when JSTL tags in jsp. But I don't know if anything similar is available for visual force pages. just for example I am providing sample code for jsp. --</p>
  
  <pre><code>    &lt;h1&gt;A Demo conditional section code&lt;/h1&gt;
      &lt;c:choose&gt;
         &lt;c:when test="${param.colorField == 'red'}"&gt;
           &lt;table border="0" width="150" height="50" bgcolor="#ff0000"&gt;
             &lt;tr&gt;&lt;td&gt;It is red&lt;/td&gt;&lt;/tr&gt;
           &lt;/table&gt;
        &lt;/c:when&gt;
        &lt;c:when test="${param.colorField == 'blue'}"&gt;
         &lt;table border="0" width="150" height="50" bgcolor="#0000ff"&gt;
           &lt;tr&gt;&lt;td&gt;It is blue&lt;/td&gt;&lt;/tr&gt;
        &lt;/table&gt;
      &lt;/c:when&gt;
      &lt;c:when test="${param.colorField == 'green'}"&gt;
          &lt;table border="0" width="150" height="50" bgcolor="#00ff00"&gt;
            &lt;tr&gt;&lt;td&gt;Green table&lt;/td&gt;&lt;/tr&gt;
          &lt;/table&gt;
      &lt;/c:when&gt;
      &lt;c:otherwise&gt;
        &lt;table border="0" width="150" height="50" bgcolor="#000000"&gt;
          &lt;tr&gt;&lt;td&gt;No colour changed&lt;/td&gt;&lt;/tr&gt;
         &lt;/table&gt;
      &lt;/c:otherwise&gt;
  &lt;/c:choose&gt;
  &lt;br/&gt;
  and other codes....
  </code></pre>
  
  <p>I am missing this kind of page block preparation in vf pages.</p>