"Sputnik" help |

Sputnik
Help

Description

Performs a bitwise **OR** operation on the given values and returns
the result.

Parameters

<values> | The values to perform the bitwise OR operation
on. |

Return Value

Success: | Returns the result of the bitwise OR operation. |

Failure: | Returns the same as success. |

Remarks

The **BitOr** function takes multiple values as input and performs
a bitwise **OR** operation on them. It calculates the logical **OR**
of the corresponding bits of each value and returns the resulting value.

The function starts with the first value and performs the bitwise **OR**
operation with each subsequent value. The final result is returned as the output.

The **BitOr** function is commonly used to combine or set specific
bits in binary values.

Related

Example

Example of usage:

my$x=BitOr(3,6);println($x);// x == is 7 because 0011 OR 0110 = 0111my$x=BitOr(3,15,32);println($x);//x == 47 because 0011 OR 1111 OR 00100000 = 00101111// PRINTS// 7// 47

Contact

Cheryl (uberfox@hotmail.com)

Homepage

http://ubersoft.org