BitOR

From AutoIt Wiki

Jump to: navigation, search

Performs a bitwise OR operation. As per convention, a 0 is returned iff the corresponding bit values are all zero and a 1 otherwise. Adapted from AutoIt docs.

Contents

[edit] Syntax

$x = BitOR(value1,value2 [, value n])

[edit] Parameters

value1The first number.
value2The second number.
value nThe nth number - up to 255 values can be specified.(Optional)

[edit] Return Value

Returns the two parameters bitwise-OR'ed together.

[edit] Example

$x = BitOR(3, 6) ;x = is 7 because 0011 OR 0110 = 0111
$x = BitOR(3, 15, 32) ;x = 47 because 0011 OR 1111 OR 00100000 = 00101111

[edit] Related Functions

BitAND BitNOT BitShift BitXOR Hex

Personal tools