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 OR y x, y: iexp The command OR (disjunction) checks whether at least one of two logical expressions x and y is TRUE. Only if x and y are both FALSE will the result FALSE be produced. Unlike XOR, (see below) a TRUE result from OR means that one or both arguments are TRUE. OR also works at the bit level with numbers. x | y | x OR y ---|---|------- T | T | T T | F | T F | T | T F | F | F Examples: PRINT TRUE OR -1 PRINT FALSE OR TRUE PRINT 0 OR FALSE --> The numbers -1, -1, and 0 are displayed. x=3 y=10 PRINT BIN$(x,4) PRINT BIN$(y,4) PRINT BIN$(x OR y,4),x OR y --> Displays 0011, 1010, 1011, and the number 11 appear on the screen.