What is this function I'm using? It works but why?
<p>I found <a href="http://it.toolbox.com/blogs/paytonbyrd/tostring-or-converttostring-that-is-the-question-28003" rel="nofollow">this</a> article on the webs and thought I'd try to apply the null string style method to my excel range value. Sometimes it has a value in it and sometimes it doesn't and obviously <code>double</code> doesn't like null values.</p>

<p>This is my little snippet.</p>

<pre><code>double valTotal = (rngTotal.Value != null ? 1 : 0);
</code></pre>

<p>My question is what am I doing with this above code? It looks like an if statement in one line with the "1" being the "then" and the "0" being the "else". Is that right? And most importantly, what is the name of this syntax so I can find out more about this?</p>
