I suggest you don't get into the bad habit of assignments in conditionals.
See http://wiki.civicrm.org/confluence/display/CRM/BEST+PRACTICES+-+Please+Read