title: if block inside echo statement?
body: <p>I suspect it's not allowable because I am getting "Parse error: syntax error, unexpected T_IF in..." error. But I couldn't find a way to accomplish my goal. Here's my code: </p>
  
  <pre><code>&lt;?php 
  
    $countries = $myaddress-&gt;get_countries();
  
    foreach($countries as $value){
      echo '&lt;option value="'.$value.'"'.if($value=='United States') echo 'selected="selected"';.'&gt;'.$value.'&lt;/option&gt;';
    }
    ?&gt;
  </code></pre>
  
  <p>What it does is it displays a list of countries in a select element and sets United States as the default. I doesn't work sadly...</p>