BitOR
From AutoIt Wiki
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
| value1 | The first number. |
| value2 | The second number. |
| value n | The 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
