Jump to content
Sign in to follow this  
killzone_kid

Need BIS developer confirmation (breakOut)

Recommended Posts

Contrary to biki

breakOut "";

exits the scope it is in, no need for scopeName

if (true) then {

diag_log ("1");

if (true) then {

diag_log ("2");

breakOut "";

diag_log ("3");

};

diag_log ("4");

};

diag_log ("5");

result is

"1"

"2"

"4"

"5"

Please confirm this is intended behaviour and not a bug.

Share this post


Link to post
Share on other sites

Its the normal behaviour, breakOut breaks the current scope. See a bit more in my signature "Dev Tips" link.

Share this post


Link to post
Share on other sites

appreciate your reply but the link provides no answer. would still like to have dev confirmation on this.

Share this post


Link to post
Share on other sites

It's just like break in any other languages with a optional goto for whatever reason.

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  

×