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-Filex AND y x, y: iexp The logical operator AND (conjunction) checks whether two logical expressions x and y are both true. Only in this case it produces the value TRUE (-1). If one or both logical expressions are wrong, then AND produces a logical FALSE. With AND each pair of the 32 bits is tested independently. x | y | x AND y --|---|-------- T | T | T T | F | F F | T | F F | F | F Examples: PRINT TRUE AND -1 PRINT FALSE AND TRUE --> On the screen the numbers -1 and 0 appear. x=3 y=10 PRINT BIN$(x,4) PRINT BIN$(y,4) PRINT BIN$(x AND y,4),x AND y --> Displays 0011, 1010, 0010, and 2 on the screen.