BIT_NOT macro
The BIT_NOT
macro
is available in Unica Campaign and Unica Interact.
Syntax
BIT_NOT data ~ data
Parameters
data
The
non-negative integers to bitwise NOT. This can be a constant value,
a column, a cell range, or an expression evaluating to any of the
above. For the format definition of data
, see the "Macro
Function Parameters" section in the chapter in this guide for
your
product.
Description
BIT_NOT
calculates
the bitwise NOT of the values in the specified data range. It returns
one new column for each input column, each containing the bitwise
NOT of the values in the corresponding columns of data
.
data
is the same as using the constant x as
data
.BIT_NOT
operator
can be abbreviated with a tilda (~
). Use the tilda
before the data value (for example, to specify BIT_NOT(V1)
,
you can simply type ~V1
.Examples
TEMP = BIT_NOT 3 or TEMP = ~3 Creates
a new column named |
TEMP = ~V1 Creates a new column named |
TEMP = ~V1:V3 Creates three new columns
named |
TEMP = ~V1[100:200] Creates a new column
named |
Related Functions
Function | Description |
---|---|
BIT_AND |
Computes the bitwise AND between two specified data ranges |
BIT_OR |
Computes the bitwise OR between two specified data ranges |
BIT_XOR or XOR |
Computes the bitwise XOR between two specified data ranges |