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>EndIf</h1>
|
|
|
|
|
<h1>Parameters</h1>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
None.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<h1>Description</h1>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
Terminates an IF ... THEN condition structure. See END IF for more information.
|
2014-02-26 16:08:39 +13:00
|
|
|
<br>
|
|
|
|
|
<br>
|
2014-12-08 12:43:20 +13:00
|
|
|
See also: <a class=small href=If.htm>If</a>, <a class=small href=Then.htm>Then</a>, <a class=small href=Else.htm>Else</a>, <a class=small href=ElseIf.htm>ElseIf</a>, <a class=small href=Select.htm>Select</a>.
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<h1><a href=../2d_examples/EndIf.bb>Example</a></h1>
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>
|
|
|
|
|
; IF THEN Example
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
; Input the user's name
|
|
|
|
|
<br />
|
|
|
|
|
name$=Input$("What is your name? ")
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
; Doesn't the person's name equal SHANE?
|
|
|
|
|
<br />
|
|
|
|
|
If name$ = "Shane" Then
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
Print "You are recognized, Shane! Welcome!"
|
|
|
|
|
<br />
|
|
|
|
|
|
2014-02-26 16:08:39 +13:00
|
|
|
<br />
|
2014-12-08 12:43:20 +13:00
|
|
|
Else
|
2014-02-26 16:08:39 +13:00
|
|
|
<br />
|
2014-12-08 12:43:20 +13:00
|
|
|
|
2014-02-26 16:08:39 +13:00
|
|
|
<br />
|