title: VB.NET similar function to "ISNULL" available in SQL?
body: <p>I have this in my VB.NET code:</p>
  
  <pre><code>Dim myValue as String
  myValue = ""
  Dim myDblValue as Double
  myDblValue CDbl(Val(myValue))
  </code></pre>
  
  <p>If <code>myValue</code> string is <code>null</code> [like in this example], I'd like to set the value to a predefined value for example <code>999</code>. I know in SQL I can use <code>ISNULL</code> for that. Is there any equivalent in VB.NET? If not, how can it be done with available functions? </p>