Lasso Soft Inc. > Home

[ integer->bitor ]

Method

[Integer->BitOr] performs a bitwise Or operation between each bit in the base integer and the integer parameter.

Returns the result leaving the left side unmodified.

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

To combine two integers using a bitwise OR operation:

Use the [Integer->BitOr] method. The following example shows the result of performing a bitwise OR operation on 14 (1110) and 13 (1101), resulting in 15 (1111).

Code

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

Result

15

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