Files
BlitzNext/_release/help/commands/2d_commands/EndIF.htm
T
2014-02-26 16:08:39 +13:00

19 lines
1.5 KiB
HTML

<html><head><title>Command: EndIF </title><meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'><link rel='stylesheet' href='../css/commands.css' type='text/css'></head><body><span class='Command'>&nbsp;&nbsp;EndIF &nbsp;&nbsp;</span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Another acceptable version of the END IF statement</td></tr></table><span class='header'><br>Parameter Description:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>None.</td></tr></table><p class='header'>Command Description: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Terminates an <a href='IF.htm'>IF</a> ... <a href='THEN.htm'>THEN</a> condition structure. See <a href='END IF.htm'>END IF</a> for more information.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><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>
<br>
Else<br>
<br>
Print "Sorry, you don't belong here!"<br>
<br>
; End of the condition checking<br>
EndIf<br>
<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
</html>