FutureBasic Logo

<<    Index    >> FutureBasic

nand   operator



Syntax
result& = exprA {nand | ^&} exprB

Description
Expression exprA and expression exprB are each interpreted as 32-bit integer quantities. The nand operator sets each bit in result when the bit in exprA is set and the corresponding position in exprB is cleared. This can be thought of as a not and expression. The result is another 32-bit quantity; each bit in the result is determined as follows:

Bit Value in exprBit Value in exprBit Value in expr
000
101
010
110

See also
and; &&; nor; not; xor; or; Appendix D - Numeric Expressions