Exit Keyword

The exit keyword stops the execution of the script. It is used to handle error scenarios when the situation becomes impossible to recover. Available on the client only.

Example

The following script computes the total weight of n points:

Let i(Integer)
Let totalWeight(Integer)
for i while I <= points.Size()
{
	       totalWeight = totalWeight + pointsWeight[i]
}
If totalWeight == 0
{
	        // Forbidden case
	        exit
}
[...]