HTBasic Help
×
Menu
Index

OR

Returns the logical inclusive OR of two expressions.
 
 numeric-expression OR numeric-expression
 
Usage:
A=1 OR 0
IF ProcA OR ProcB THEN Next
IF A=B OR X>Y THEN 1000
X=N+4*(J=1 OR K=2)
 
Example:           OR.BAS
 
Description:
The result of A OR B is zero only if both A and B are zero. If either or both A and B are non-zero, the result is one.
 
See Also: