crazytank10 10 Posted November 16, 2013 In my SQF script, I have an array full of elements that are either positions (arrays) or objects. For each element, I want to do something different depending on which type it is. (setSimpleTaskDestination vs. setSimpleTaskTarget, if it matters.) It this possible in Arma? I'm pretty sure BIS_fnc_param doesn't help me here, and I haven't found any other functions or threads that address this. Any ideas? Thanks in advance. Share this post Link to post Share on other sites
Hypnomatic 10 Posted November 16, 2013 typeName does exactly what you're looking for: http://community.bistudio.com/wiki/typeName Just as an example: _someVariable = []; if (typeName _someVariable == "ARRAY") then { //It's an array! } else { //It's not an array. }; Share this post Link to post Share on other sites
crazytank10 10 Posted November 16, 2013 typeName does exactly what you're looking for:http://community.bistudio.com/wiki/typeName Wow, can't believe I hadn't heard of that yet. Thanks! Share this post Link to post Share on other sites