This is a BUG?

Blitz3D Forums/Blitz3D Beginners Area/This is a BUG?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I see what skids trying to say. He's stating that your code is being evaluated like so:
If (vivo) = (1 and EntityCollided(player,2))
text 0,0,"You Are Dead"
endif

and not like so: (which is what you wanted)
If (vivo = 1) and (EntityCollided(player,2))
text 0,0,"You Are Dead"
endif

Of course, you could make it work by just adding the parenthesis like I did above.



I've had trouble myself sometimes using the And operator. Especially in situations with Not.
So something like this:
If this And Not that
  ;do something
endif

won't compile unless I add parenthesis like this:
If this And (Not that)
  ;do something
endif