$and

From Scriptwiki
Revision as of 19:43, 9 May 2008 by Aca20031 (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Performs a bit-wise AND comparison against two numbers

$and(number 1, number 2)

Examples

$and(5,6)

Binary values of each:

00000101
00000110

Leaving the bits which are in 5 AND 6

Returns: 4 (00000100)