krumpo 1 Posted August 26, 2012 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
ProfTournesol 956 Posted August 26, 2012 Non existing variable are tested through isnil IIRC. Share this post Link to post Share on other sites
krumpo 1 Posted August 26, 2012 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
krumpo 1 Posted August 26, 2012 isNil "_marker" seems to have been the answer, thanks for playing everyone. Share this post Link to post Share on other sites