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

 
 
 
 

 
 
 
 
 
 
 
 
 

XOR Operator

Language reference


Syntax

 

result = expression1 XOR expression2

 

or

 

result = expression1 ^ expression2


Description:

 

Performs a logical exclusion on two expressions. If one, and only one, of the expressions evaluates to True, result is True. The following table illustrates how result is determined:

 

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

The Xor 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 0


See also:

 

OR operator, AND operator, NOT operator, bitwise NOT operator


A operator XOR is a part of kernel LC Basic.

 
Last updated: November 2, 2003
Copyright © 2002 Lucersoft

Add to favorites

Back