Math.BitwiseOR
--------------

Perform bitwise or operation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Math](component_Math.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Math.BitwiseOR"; Value1; value2... ) 

**MBS**( **"Math.BitwiseOR";** /\* Perform bitwise or operation. \*/  
**$Value1**; /\* The first number.e.g. 5 \*/   
**$value2...**) /\* The second number.e.g. 6 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value1 | The first number. | 5 |
| value2... | The second number. | 6 |

### Result

Returns number.

### Description

Perform bitwise or operation.  
Only for integer numbers. You can pass several values to combine more than 2 values.  
  
Updated to use 64-bit signed integers in version 7.3.  
  
This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.  
Please repeat value2 parameter as often as you need.  
### Examples

Applies bitwise or for three numbers which gives 23:

 MBS ("Math.BitwiseOR"; 5; 6; 16)  
### See also

- [DynaPDF.SetViewerPreferences](DynaPDFSetViewerPreferences.md)
- [Math.BitwiseAND](MathBitwiseAND.md)
- [Math.BitwiseNOT](MathBitwiseNOT.md)
- [Math.BitwiseXOR](MathBitwiseXOR.md)
- [Preferences.SetValue](PreferencesSetValue.md)

### Release notes

- **Version 7.3**
    - Improved [Math.BitwiseAND](http://www.mbsplugins.eu/MathBitwiseAND.shtml), [Math.BitwiseOR](http://www.mbsplugins.eu/MathBitwiseOR.shtml), [Math.BitwiseNOT](http://www.mbsplugins.eu/MathBitwiseNOT.shtml), [Math.BitwiseXOR](http://www.mbsplugins.eu/MathBitwiseXOR.shtml), [Math.BitwiseShiftRight](http://www.mbsplugins.eu/MathBitwiseShiftRight.shtml) and [Math.BitwiseShiftLeft](http://www.mbsplugins.eu/MathBitwiseShiftLeft.shtml) to use 64-bit integers instead of 32-bit.

### Blog Entries

- [MBS FileMaker Plugin, version 7.3pr7](https://www.mbsplugins.de/archive/2017-07-15/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 4.1pr5](https://www.mbsplugins.de/archive/2014-03-14/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 18th August 2014 , last changed 5th June 2021

  
[Math.BitwiseNOT](MathBitwiseNOT.md) - [Math.BitwiseRotate](MathBitwiseRotate.md)

[HTML Version](MathBitwiseOR.shtml)