If ... Then func() Else ...

Blitz3D Forums/Blitz3D Bug Reports/If ... Then func() Else ...

Here is an example taken directly from the code of my current game:

this code works:
If OtherUnit\IsPlayer Then 
AddSoundToPlayList(OtherUnit.UnitObject,"body impact")
Else
 AddSoundToPlayList(OtherUnit.UnitObject,"impact")
endIf 

this code does not:
If OtherUnit\IsPlayer Then AddSoundToPlayList(OtherUnit.UnitObject,"body impact") Else AddSoundToPlayList(OtherUnit.UnitObject,"impact")


does it in both blitzplus and blitz3d (haven't tried it in blitzbasic but probably not much point testing that one..)