Usage

Syntax: break;

Explanation

break ends the execution of the current loop and continues past it in the script. It does not end function execution, and will return an error if it is used when not inside a loop.

Example

function onCreated()
{
	for (temp.i = 0; temp.i < 10; temp.i ++)
	{
		if (temp.i == 3)
		{
			break;
		}
	}
}

... will stop the loop execution when temp.i reaches 3.

Categories

CategoryLanguageConstruct
Comments [Hide comments/form]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
⚡ WEB1 (144.76.42.176) — Testing Environment ⚡