RE: [PHP] Strange IF(condition) behaviour

2004-01-06 Thread Ford, Mike [LSS]
On 06 January 2004 03:58, Tim L wrote: > I'm not sure if this is intended behaviour or not, but I can > see that is > might be. Just thought I would bounce this to see what > people think about > it: > > if (false) > ?> Hello else > echo "Hi"; > > echo " World\n"; > ?> > > This returns

[PHP] Strange IF(condition) behaviour

2004-01-05 Thread Tim L
I'm not sure if this is intended behaviour or not, but I can see that is might be. Just thought I would bounce this to see what people think about it: Hello This returns a parse error due to the fact there is no brackets around the first part of the if statement. It seems that because the next