ORb

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Operators > Logical >

ORb

 

Description

 

Used to perform OR bitwise operations.

 

Syntax

 

result = ORb (Num1, Num2)

 

Returns

 

Number

 

Remarks

 

ORb function 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

And bit in expression2 is

The result is

1

1

1

1

0

1

0

1

1

0

0

0

 

Restrictions

 

See also

 

Examples