title: My IF condition isn't working
body: <p>I have a problem. Here is my code:</p>
  
  <pre><code>$resultado=$ssh-&gt;exec('[ -d /usr/share/servermanager/backups/  ] &amp;&amp; echo "found" || echo "not_found" '); 
          //die ($resultado);
              if($resultado == "found"){
                  $alert_inst='&lt;span class="label label-success mr10 mt10" &gt;Instalado&lt;/span&gt;';
              }else{
                  $alert_inst='&lt;span class="label label-danger mr10 mt10" &gt;Não instalado&lt;/span&gt;';   
              }
  </code></pre>
  
  <p>When I uncomment my <code>die()</code>, it prints out: </p>
  
  <pre><code>found
  </code></pre>
  
  <p>But the if statement doesn't work. Please help!</p>