Not
Not Operand
 
Parameters: NONE
Returns: NONE
 

      Not performs a Not operation on the least significant bit of the specified operand. Not can be used for boolean conditions to convert 1 (true) to 0 (false) or vice versa. If you want to perform a bitwise Not operation upon an integer value use NotInt instead.



FACTS:


      * If the least significant bit in the operand is cleared, Not will set it

      * If the least significant bit in the operand is set, Not will clear it



Mini Tutorial:


      Showing the use of the Not operator


  
  Print Not 0
  Print Not 1
  Print Not 2
  Print Not 3
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  




This example would output.

  
  1
  0
  1
  0
  

 
Related Info: And | NotInt | Or | Xor :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com