•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
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 IMP y

x, y: iexp

The operator IMP (Implication) corresponds to a logical consequence. The result
is only FALSE if a FALSE expression follows a TRUE one. IMP also works at the
bit level. Unlike AND, OR, XOR, and EQV, the sequence of the arguments is
important.

    x | y | x IMP y
    --|---|--------
    T | T | T
    T | F | F
    F | T | T
    F | F | T

Examples:

    PRINT TRUE IMP -1
    PRINT 0 IMP FALSE
    PRINT TRUE IMP 0

--> The numbers -1, -1 and, 0 appear on the screen.

    x=3
    y=10
    PRINT BIN$(x,4)
    PRINT BIN$(y,4)
    PRINT BIN$(x IMP y,4)

--> Displays 0011, 1010, and 1110 on the screen.