Or.htm 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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>Or</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. A logical expression to return a boolean TRUE or FALSE comparison of expressions or values. Use this to check two expressions or more and act upon its return value. See the example.
  21. <br>
  22. <br>
  23. See also: <a class=small href=And.htm>And</a>, <a class=small href=Not.htm>Not</a>, <a class=small href=Xor.htm>Xor</a>.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/Or.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. ; OR Example <br />
  32. <br />
  33. myNum1=Rnd(0,10) <br />
  34. myNum2=Rnd(0,10) <br />
  35. <br />
  36. If myNum1 = 0 OR myNum2 = 0 then <br />
  37. print "One of my numbers is a Zero" <br />
  38. end if
  39. </td>
  40. </tr>
  41. </table>
  42. <br>
  43. <a target=_top href=../index.htm>Index</a><br>
  44. <br>
  45. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=Or&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  46. </html>