EndIF.htm 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>EndIf</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. None.
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. Terminates an IF ... THEN condition structure. See END IF for more information.
  21. <br>
  22. <br>
  23. 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>.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/EndIf.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. ; IF THEN Example <br />
  32. <br />
  33. ; Input the user's name <br />
  34. name$=Input$("What is your name? ") <br />
  35. <br />
  36. ; Doesn't the person's name equal SHANE? <br />
  37. If name$ = "Shane" Then <br />
  38. <br />
  39. Print "You are recognized, Shane! Welcome!" <br />
  40. <br />
  41. Else <br />
  42. <br />
  43. Print "Sorry, you don't belong here!" <br />
  44. <br />
  45. ; End of the condition checking <br />
  46. EndIf
  47. </td>
  48. </tr>
  49. </table>
  50. <br>
  51. <a target=_top href=../index.htm>Index</a><br>
  52. <br>
  53. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=EndIf&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  54. </html>