Topic : The GFA-Basic Compendium Author : GFA Systemtechnik GmbH Version : GFABasic.HYP v2.98 (12/31/2023) Subject : Documentation/Programming Nodes : 899 Index Size : 28056 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : @default : Document not found @help : Help @options : +g -i -s +z @width : 75 @hostname : STRNGSRV @hostname : CAB @hostname : HIGHWIRE @hostname : THING View Ref-FileNOT x x: iexp The operator NOT negates a given logical expression. It is the only logical operator, which has a single argument. Each individual bit of the argument is modified. x | NOT x --|------ T | F F | T Examples: PRINT NOT FALSE PRINT NOT TRUE PRINT NOT 0 --> The numbers -1, 0, and -1 appear on the screen. x=1 PRINT BIN$(x,2) PRINT BIN$(NOT x,2) --> 01 and 10 appear on the screen. x%=17 PRINT BIN$(x%,8),x% PRINT BIN$(NOT x%,8),NOT x% --> Displays 00010001, 17, 11101110, and -18 on the screen. Memo: IF NOT v It's amazing how often even experience programmers will forget that NOT v is not the same as NOT v! and end up with a logical test that doesn't work.