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



Introduced in

Version:1.00

Description

Description:Breaks a code block and exits to the given code scope. The scope name can be assigned using scopeName.

Syntax

Syntax:breakTo name
Parameters:
  • name: String - The code scope.
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, breakOut
Multiplayer: 
Problems: 

Notes