Automatic Nodetitles IF php statement in between other tokens in title I have an automatically generated title of an address with an if empty statement in the middle of the other tokens:

[node:field_street], [node:field_number],
&lt;?php
$floor= '[node:field_floor]';
$ground = '[node:field_ground_floor]';
if (empty($floor)) { return $ground; }
else
{ return ' Floor '.$floor; };
?&gt;,
[node:field_location_address:postal_code], [node:field_location_address:city]


but the token after the php statement is not displayed. If I put the php statement at the end after all other tokens, everything is displayed. What am I doing wrong?
I tried your snippet and could reproduce the problem.
What worked for me was printing/echoing instead of returning.

My code that reproduced the error:

[current-user:name]
,
&lt;?php
$floor= '[node:nid]';
$ground = '[node:created]';
if (empty($floor)) { return $ground; }
else { return " Floor floor"; }
?&gt;,
[current-page:url]


produced the title "admin, Floor 228".  

My updated code (echo instead of return) worked:

[current-user:name]
,
&lt;?php
$floor= '[node:nid]';
$ground = '[node:created]';
if (empty($floor)) { echo $ground; }
else { echo " Floor $floor"; }
?&gt;,
[current-page:url]


and produced the  title "admin, Floor 228,http://localhost/drupal/node/228/edit"  

Verdict: I believe this is expected behaviour following from the use of return; it exits the current code block, and therefore the rest of the code is never executed.

Hope this helps!