title: IsDBNull in a IIf statement
body: <p>I have the following code:</p>
  
  <pre><code>&lt;div class="featpropv3_price"&gt;&lt;span class="featpropv3_price_o"&gt;&lt;%# IIf(DataBinder.Eval(Container.DataItem, "amount") &lt;&gt; 0, DataBinder.Eval(Container.DataItem, "currency"), "")%&gt;&lt;/span&gt; &lt;span class="featpropv3_price_r"&gt;&lt;%# iif(DataBinder.Eval(Container.DataItem, "amount") &lt;&gt; 0,formatnumber(DataBinder.Eval(Container.DataItem, "amount"),0,0,0,-1),"POA") %&gt;&lt;/span&gt;
  </code></pre>
  
  <p>I want to check if its equal to IsDBNull</p>
  
  <p>I have tried :</p>
  
  <pre><code>IIf(DataBinder.Eval(Container.DataItem, "amount") &lt;&gt; 0 or DataBinder.Eval(Container.DataItem, "amount" IsDBNull.
  </code></pre>
  
  <p>What I want to do is if it is 0 or IsDBNull i want to show POA.</p>
  
  <p>EDIT:</p>
  
  <p>I think I will need something like:</p>
  
  <pre><code>&lt;%# IIf(Not IsDBNull(DataBinder.Eval(Container.DataItem, "amount")),  if( DataBinder.Eval(Container.DataItem, "amount") &lt;&gt; 0, DataBinder.Eval(Container.DataItem, "currency"), "")%&gt;
  </code></pre>