False.htm 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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>False</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. FALSE is a keyword to denote a negative result in a conditional statement. Often times, FALSE is implied and doesn't need to be directly referenced - or a NOT command is used in the comparison. FALSE can also be used as a RETURN value from aFUNCTION. Also see the TRUE command. See the example.
  21. <br>
  22. <br>
  23. See also: <a class=small href=True.htm>True</a>, <a class=small href=If.htm>If</a>, <a class=small href=Select.htm>Select</a>, <a class=small href=While.htm>While</a>, <a class=small href=Repeat.htm>Repeat</a>.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/False.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. ; FALSE example <br />
  32. <br />
  33. ; Assign test a random number of 0 or 1 <br />
  34. test= Rnd(0,1) <br />
  35. <br />
  36. ; FALSE is implied because of the NOT <br />
  37. If not test=1 Then <br />
  38. Print "Test was valued at 0" <br />
  39. End If <br />
  40. <br />
  41. ; Let's set test to be false <br />
  42. test=False <br />
  43. <br />
  44. ; Pointlessly test it <br />
  45. If test=False Then <br />
  46. Print "Test is false" <br />
  47. else <br />
  48. print "Test is true" <br />
  49. End If
  50. </td>
  51. </tr>
  52. </table>
  53. <br>
  54. <a target=_top href=../index.htm>Index</a><br>
  55. <br>
  56. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=False&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  57. </html>