www.lucersoft.com

   
       Home  |   News  |   Downloads  |   Order  |   Contacts

 

 

Main

Home

Site map

Products

LC Backup

LC Copier

HTML Batch Editor

HTML Batch Editor PRO

Tennis 2001

Freeware

Documentation

HTML Batch Editor PRO

LC Basic

Information

Order

Update Policy

Support

Contacts

Links

 
 
 
 

 
 
 
 
 
 
 
 
 

OR Operator

Language reference


Syntax

 

result = expression1 OR expression2

 

or

 

result = expression1 | expression2

 


Description:

 

Performs a logical disjunction on two expressions. If either or both expressions evaluate to True, result is True. The following table illustrates how result is determined:

 

If expression1 is And expression2 is Then result is
True True True
True False True
False True True
False False False
 

The Or operator also performs a bitwise comparison of identically positioned bits in two numeric expressions and sets the corresponding bit in result according to the following table:

 

If bit in expression1 is And bit in expression2 is Then result is
0 0 0
0 1 1
1 0 1
1 1 1

 


See also:

 

AND operator, XOR operator, NOT operator, bitwise NOT operator


A operator OR is a part of kernel LC Basic.

 
Last updated: November 2, 2003
Copyright © 2002 Lucersoft

Add to favorites

Back