Cant get this to work

Blitz3D Forums/Blitz3D Programming/Cant get this to work

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 was wrong on the difference between pointer/integer, however the example code is still valid. The "2>1" condition is just an example, it could be "x=3".
What im saying is that it seems inconsistent that a pointer can give either a "True" when used like this :

entity = createcube()
If Entity Then ...

or a "False" when used like this :

entity = createcube()
x = 3
If x=3 and Entity Then ...

It might be a thing to make easier the check for existante of entities (if entity ...) but the inconsistent behavior feels not so clean.