thy_ 137 Posted September 2, 2023 Hi there. Kind of basic stuff but my brain today is not hooking me up: I need to verify possible inexistent objects in an array: // Soldiers that Editor has been dropped and named through the Eden: _targetsOnEden = [varname_1, varname_2]; // Loop for check if some soldier doesn't exist: { if ( _x isEqualTo objNull ) exitWith { systemChat "One or more soldiers don't exist" }; } forEach _targetsOnEden; But the error prints out saying "Error undefined variable in expression: _x" for some reason. All I need is to print that systemChat out without any game errors on screen. Share this post Link to post Share on other sites
Larrow 2808 Posted September 2, 2023 if ( isNil "_x" || { isNull _x } ) then 1 Share this post Link to post Share on other sites
thy_ 137 Posted September 2, 2023 I am on the road now. Sunday or Monday i will check it out! Thanks, @Larrow! Share this post Link to post Share on other sites
thy_ 137 Posted September 4, 2023 On 9/2/2023 at 11:48 AM, Larrow said: if ( isNil "_x" || { isNull _x } ) then That's it! Thanks 😉 Share this post Link to post Share on other sites