19 lines
1.5 KiB
HTML
19 lines
1.5 KiB
HTML
<html><head><title>Command: Then </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'> Then </span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Part of the IF conditional structure</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>Used in an <a href='IF.htm'>IF</a> statement to denote the end of the conditional to be checked. Famous for its participation in the IF ... THEN structure. See example and IF statement 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>
|
|
End If<br>
|
|
<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
|
|
</html>
|