Skip to main content

BitOr Operator

Used to perform a bitwise disjunction on two numeric expressions.

Synopsis

result = expression1 BitOr expression2

Arguments

The BitOr operator syntax has these parts:

result Any numeric variable.
expression1 Any expression.
expression2 Any expression.

Description

The BitOr operator performs a bitwise comparison of identically positioned bits in two numeric expressions and sets the corresponding bit in result according to the following table:

If bit in expression1 is If bit in expression2 is The result is
0 0 0
0 1 1
1 0 1
1 1 1

See Also

Purpose of this instance: Draft documentation
DocReleaseID: Core2018.1.11
Content loaded from:
/staging/ce/2018.1.11/doc/cache/en-us/src/
/staging/ce/2018.1.11/doc/ensemble/en-us/src/
/staging/ce/2018.1.11/doc/isp/en-us/src/
/staging/learning/zenmojo-doc/en-us/src/
FeedbackOpens in a new tab