Lasso Soft Inc. > Home

[ Integer->BitXOr ]

Method

[Integer->BitXOr] performs a bitwise Exclusive-Or (e.g. XOR) operation between each bit in the base integer and the integer parameter.

  • Syntax
Integer Variable->BitXOr(Integer Value)
Examples
  • Beginner

To combine two integers using a bitwise XOR operation:

Use the [Integer->BitXOr] method. The following example shows the result of performing a bitwise XOR operation on 14 (1110) and 13 (1101), resulting in 3 (0011).

Code

local(result = 14)
#result->BitXOr(13)

Result

3

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft