Jump to content
Sign in to follow this  
krumpo

What is <null>

Recommended Posts

Hi,

I am having a problem testing some return values. This is for a multiplayer mission, I am trying to test if a local variable is set via:

_name = _this select 0
{
  if (isPlayer _x) then
  {
     _marker = _x getVariable _name;
     if (isNull _marker) then
    {
       _marker = createMarkerLocal.....
    }
  };
} foreach playableUnits;

When I run this code with some diag_log statements to see what _marker actually is it shows up as <null> in the logs, but isNull does not evaluate to true somehow. Am I misunderstanding something here, does <null> not really mean null?

Thank you.

Share this post


Link to post
Share on other sites
Non existing variable are tested through isnil IIRC.

Tested isNil as well and it does not work either.

Share this post


Link to post
Share on other sites

isNil "_marker" seems to have been the answer, thanks for playing everyone.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×