Chained IF structure
<p>Imagine this case where I have an object that I need to check a property.
However, the object can currently have a null value.</p>

<p>How can I check these two conditions in a single "if" condition?</p>

<p>Currently, I have to do something like this:</p>

<pre><code>if (myObject != null)
{
    if (myObject.Id != pId)
    {
        myObject.Id = pId;
        myObject.Order = pOrder;
    }
}
</code></pre>

<p>I would like something like this:</p>

<pre><code>if (myObject != null &amp;&amp; myObject.Id != pId)
</code></pre>

<p>I want to evaluate the second condition only if the first was true.</p>

<p>Maybe I'm missing something, and that's why I need your help ;-)</p>
