title: using if else with eval in aspx page
body: <p>Is there a way to use an else if on the following eval on the aspx page .</p>
  
  <p>Currently my div is as follows : </p>
  
  <pre><code>  &lt;div class="tooltip" style="display: none"&gt;                                                                  
          &lt;div style="text-align: center; font-weight: normal"&gt;
                  Value = &lt;%# Eval("Percentage") + "%" %&gt;     
          &lt;/div&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>I would like to use the following logic on my div : </p>
  
  <pre><code>If(Percentage &lt; 50)
     display "0 %"
     else 
     display "percentage"
  </code></pre>
  
  <p>I tried something like this but it doesn't work :</p>
  
  <pre><code>if (&lt;%# Eval("Percentage") %&gt; &lt; 50)
  {
      Eval("0");
  }
  else
  {
     &lt;%# Eval("PassPercentage") + "%" %&gt; 
   }
  </code></pre>
  
  <p>I want to know if such an operation is possible  to do on the aspx page. I cannot do it in aspx.cs.</p>