9 lines
1.5 KiB
HTML
9 lines
1.5 KiB
HTML
<html><head><title>Command: Not </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'> Not </span></p><span class='header'>Definition:</span> <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>Logical operator NOT to test a condition to be false.</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>The NOT operator is used to determine if a condition is <a href='FALSE.htm'>FALSE</a> instead of <a href='TRUE.htm'>TRUE</a>. This is frequently used in <a href='WHILE.htm'>WHILE</a> loops and <a href='IF.htm'>IF</a> statements to check for the NON-EXISTANCE of an event or value. We use NOT frequently in our examples, inside WHILE loops to test if the ESC key has been pressed.</td></tr></table><p class='header'>Example: <br><br><table width='100%' border='0' cellspacing='2' cellpadding='2' align='center'><tr><td>; NOT example<br>
|
|
<br>
|
|
; Loop until they press ESC<br>
|
|
While Not KeyHit(1) ; As long as ESC isn't pressed ...<br>
|
|
Print "Press ESC to quit!"<br>
|
|
Wend<br>
|
|
<br></td></tr></table><p><b><a target="_top" href="../index.htm">Index</a></b></p></body>
|
|
</html>
|