Files
BlitzNext/_release/help/commands/2d_commands/Exit.htm
T

45 lines
1.1 KiB
HTML
Raw Normal View History

2014-12-08 12:43:20 +13:00
<html>
<head>
<title>Blitz3D Docs</title>
<link rel=stylesheet href=../css/commands.css type=text/css>
</head>
<body>
<h1>Exit</h1>
<h1>Parameters</h1>
<table>
<tr>
<td>
None
</td>
</tr>
</table>
<h1>Description</h1>
<table>
<tr>
<td>
This command will allow you to leave a For .. Next loop as well as many other types of loops prematurely (assuming a condition was met or other planned event). It exits the IMMEDIATE loop - you'll need one for each 'nest' of loops you want to exit from.
2014-02-26 16:08:39 +13:00
<br>
2014-12-08 12:43:20 +13:00
<br>
See also: <a class=small href=For.htm>For</a>, <a class=small href=While.htm>While</a>, <a class=small href=Repeat.htm>Repeat</a>.
</td>
</tr>
</table>
<h1><a href=../2d_examples/Exit.bb>Example</a></h1>
<table>
<tr>
<td>
; EXIT Command sample
<br />
<br />
For t = 1 To 100
<br />
Print t
<br />
If t = 50 Then Exit
<br />
Next
</td>
</tr>
2014-02-26 16:08:39 +13:00
</table>