•  Back 
  •  C Language 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : C-Language Documentation
Author      : John Kormylo
Version     : C.HYP 1.0
Subject     : Documentation/C-Language
Nodes       : 233
Index Size  : 6362
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ Logical Operators ]

... return either TRUE (-1) or FALSE (0).

==  Equal: return TRUE if operands are equal.
!=  Not Equal: return TRUE if operands are not equal.

<   Less Than: return TRUE if Lvalue is less than Rvalue.
>   Greater Than: return TRUE if Lvalue is greater than Rvalue.

<=  Less Than or Equal: return TRUE if Lvalue is less than or equal to
     Rvalue.

=>  Equal or Greater Than: return TRUE if Lvalue is greater than or
     equal to Rvalue.

&&  Logical And: return TRUE if both operands are TRUE.
||  Logical Or: return TRUE if either operand is TRUE.

Note: Logical expressions are actually implemented using branches, so
      if the Lvalue of an && is FALSE, or the Lvalue of an || is TRUE,
      then the Rvalue is never evaluated.
      The order in which expressions are evaluated can have a
      significant effect on program speed and reliability.

See also Unary Operators !