Please enable JavaScript to view this site.

ESL Documentation

MATHLIB Function

Returns the result of a bitwise "OR" operation.

OR(X_IV, Y_IV)

X_IV

An integer number whose bit settings you wish to check.

Y_IV

An integer number "Mask" containing the value for the bit you wish to set.

Description

The bitwise functions are designed to allow an Esl application to use System API's where individual bits within an integer are used as flags, without the need to write an external routine.

Use this function to set a bit within an integer to 1. The bit to be set is determined by the value of the "Mask" integer. The function returns the value of the bitwise OR operation, which may be the same value as the original integer, if the bit was already set, or increased by the value of the "Mask"  bit if it was originally zero.