Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.00

Description

Description:Breaks out of a code block with a code-scope name. The scope name can be assigned using the scopeName.

Syntax

Syntax:breakOut name
Parameters:
  • name: String - Code scope name.
Return Value:Nothing

Examples

Examples:scopeName "main";

while {true} do { scopeName "loop1"; while {true} do { scopeName "loop2"; if (condition1) then {breakTo "main"}; // Breaks all scopes and return to "main" if (condition2) then {breakOut "loop2"}; // Breaks scope named "loop2" sleep 1; }; sleep 1; };

Additional Information

See also: scopeName, breakTo
Multiplayer: 
Problems: 

Notes





Posted on 19 Aug, 2008
alef
When "name" is "" or nil, the command is ignored.
When "name" is an undefined scope, the script quit.