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

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki