<p>I am using NetBeans for PHP 6.5.</p>

<p>In my code I frequently use the following type of command:</p>

<pre><code>if (($row = $db-&gt;get_row($sql))) {
        return $row-&gt;folder;
    } else {
        return FALSE;
    }
</code></pre>

<p>Netbeans tells me that I should not be using assignments in the IF statement.</p>

<p>Why ?</p>

It's probably trying to help you avoid the dreaded typo:
```
```
if(a = b)
   //logic error
```
```
Although I would expect an enviroment smart enough to warn you about that, to also be smart enough to have "oh, don't worry about that case" conditions.