title: Check if a variable is null in plsql
body: <p>I want to check if a variable is null.  If it is null, then I want to set a value to that variable:</p>
  
  <pre><code>//data type of var is  number 
  if Var = null then
    var :=5;
  endif
  </code></pre>
  
  <p>But I am geting error in it.  How can I check if a variable is null?</p>
  
  <p>I am using oracle data type</p>