Futurebasic/Language/Reference/and

Operator
✔ Appearance ✔ Standard ✔ Console

Syntax
result& = exprA {and | &&} exprB

Description
Expression   and expression   are each interpreted as 32-bit integer quantities. The  operator performs a "bitwise comparison" of each bit in   with the bit in the corresponding position in  . The result is another 32-bit quantity; each bit in the result is determined as follows:

Example
In the following example, expressions are evaluated as true or false before a decision is made for branching. The logical expression  is true, and is therefore evaluated as -1. The expression  is false, and is therefore evaluated as 0. Then the bitwise comparison (-1)  (0) is performed, resulting in zero. Finally, the  statement interprets this zero result as meaning "false," and therefore skips the first   statement. time = 9.5 long if time > 7 and time < 8.5 print "It is time for breakfast!" xelse print "We have to wait 'til noon to eat!" end if The example below shows how bits are manipulated with : defstr long print bin$( 923 ) print bin$( 123 ) print "" print bin$( 923 and 123 ) program output: 00000000000000000000001110011011 00000000000000000000000001111011

00000000000000000000000000011011