logo-header

 
 

syntax

  • bitand(a,b)

definition

bitand(a,b) results in the logical and of two boolean or integer data items a and b. In this bitwise comparison, a true or 1 value is returned if both arguments have a true or 1 value at the bit position compared and a false or 0 value in all other cases. The values unit of the resulting data item is the values unit of item a.

descripition

bitand is a bitwise operation.

applies to

Data items with bool, (u)int8, (u)int16, (u)int32 or (u)int64 value type

conditions

The domain and values unit of arguments a and b must match.

since version

5.15

example

attribute<uint8> bitandAB (ADomain) := bitand(A, B); 
A B   bitandAB
0 2 0
1 2 0
2 2 2
3 2 2
null 2 null
ADomain, nr of rows = 5

see also


OBJECT VISION BV
Vrije Universiteit
De Boelelaan 1085
1081 HV Amsterdam
The Netherlands

tel: +31 (0)20 598 9083
fax:+31 (0)20 598 9904