ANDb

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > Operators > Logical >

ANDb

 

Description

 

Used to perform AND bitwise operations.

 

Syntax

 

result = ANDb (Num1, Num2)

 

Returns

 

Number

 

Remarks

 

ANDb 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

0

0

1

0

0

0

0

 

Restrictions

 

See also

 

Examples