PHP "if empty" help Joomla - VirtueMart
<p>I'm having trouble with this code. If the field <code>customer_note</code> is empty, need it to return a value of <code>N</code> and <code>Y</code> if there is text in the field. The resulting <code>Y</code> or <code>N</code> is being passed into an XML line. I'm using PHP 5.2.9.</p>

<p>Thank you.</p>

<pre><code>if( !empty( $customer_note )) {
  $shopper_message .= $customer_note."\n";
} else {
  $shopper_message .= "\n";
}
</code></pre>
