SplitScript reference / Integer / bitOr
Integer.bitOr
Operator
T.bitOr(other: T) -> T where T: Integer
Combines two integers with a bitwise OR.
This method is also the implementation of the | operator.
Parameters
other: The other integer.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Add a flag to a mask
let combined = 0x10u32 | 0x20