title: How to write IsNullOrEmpty method similar to ISNULL in sql server
body: <p>I want to have function in sql server similar to ISNULL() except it should check expression for null and empty also.</p>
  
  <p>If first parameter is null or empty, returns second.</p>
  
  <p>can someone help me?</p>