BitwiseAnd

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
<Left> bitwise and <Right>
Associationscom.livecode.bitwise
Summary

Performs a bitwise AND operation on the binary representations of Left and Right.

Parameters
NameTypeDescription
Left

An expression which evaluates to an integer.

Right

An expression which evaluates to an integer.

Example
variable tVar as Number
put 3 bitwise and 6 into tVar -- tVar contains 2
Values
NameTypeDescription
return

The integer whose binary representation is the result of the bitwise AND operation.

Description

Each bit of Left bitwise and Right is 1 if and only if both the corresponding bit of the binary representation of Left and that of Right is 1. Otherwise it is 0.

Tagsbitwise operations