Jump to content
Sign in to follow this  
Deadfast

Is an array empty?

Recommended Posts

Good evening all, here I come again.

This time I'm here with another simple question of how to check whether an array is empty (SQF IF syntax).

Thank you for your help in advance.

EDIT: Actually I think it might be better idea to state what I'm after - I need to check whether a vehicle is manned or not and I thought checking crew might be the way to go.

Share this post


Link to post
Share on other sites

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if ((count crew name_of_vehicle)<1) then {}

Think this should work... but you never know with ArmA. wink_o.gif

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  

×