M1ke_SK 230 Posted April 21, 2017 I have params defined like this: params ["_object", ["_code", {}]]; Question: how to check if there is some code? if !(_code isEqualTo "") then { _object spawn _code; }; Share this post Link to post Share on other sites
Wyqer 304 Posted April 21, 2017 if (!isNil "_code") then { // code }; With this you check if the variable "_code" is defined. Share this post Link to post Share on other sites
killzone_kid 1326 Posted April 21, 2017 if (_code isEqualType {}) then { _object spawn _code; }; or you can force it params ["_object", ["_code", {}, [{}]]]; 1 Share this post Link to post Share on other sites