title: PHP - If something is the case, do nothing
body: <p>Is this a proper way to say: if something is the case, do nothing?</p>
  
  <pre><code>if ( ($hostNameInfo == $hostNameInput) &amp;&amp; ($hostAddressInfo == $hostAddressInput) )
  {
    return;
  }
  </code></pre>
  
  <p><strong>Update:</strong>
  I'm not inside a function. :(
  So the return is just nonsense. </p>
  
  <p>Here is more code:</p>
  
  <pre><code>//if the input fields are equal to database values, no need to update and waste resources,hence, do nothing:
  if ( ($hostNameInfo == $hostNameInput) &amp;&amp; ($hostAddressInfo == $hostAddressInput) )
  {
    //do nothing
  }
  //If, however, (they are NOT equal and) input fields are not empty:
  elseif (!empty($hostNameInput) &amp;&amp; (!empty($hostAddressInput)))
  {
   //do something.
  }
  </code></pre>
  
  <p>Thanks in advance,
  MEM</p>