Jump to content
Sign in to follow this  
Patriot123

How i can check variable?

Recommended Posts

Good day!

Help me, please! How I can check: variable is array or not??

If I use this code:

_clipboard=copyFromClipboard;
_clip_array = call compile _clipboard;
_result1=_clip_array select 0;
if (_result1=="blablabla") then {
//---------
};

... and in clipboard string is not array, then I get error. I need before "_result1=_clip_array select 0;" doing cheking variable is array or not.

PS: Sorry for my english.

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  

×