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.
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.