NOT macro

The NOT macro is available in Unica Campaign and Unica Interact.

Syntax

NOT(data) ! data

Parameters

data

The numerical values to compute the logical NOT of. 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

NOT returns the logical NOT of the values in the specified data range. It returns one new column for each input column, each containing the logical NOT of the values in the corresponding input column. This function returns zero for non-zero values and one for zero values.

Note: The NOT operator can be abbreviated with an exclamation mark (!). Use the exclamation mark before the data value (for example, to specify NOT(V1), you can simply type !V1).

Examples

TEMP = NOT(3.2) or TEMP = !1

Creates a new column named TEMP containing the value zero.

TEMP = !0 or TEMP = !(2+2=3)

Creates a new column named TEMP containing the value one.

TEMP = !V1

Creates a new column named TEMP, where each value is the logical NOT of the values in column V1.

TEMP = !V1:V3

Creates three new columns named TEMP, VX, and VY. The values in the TEMP column are the logical NOTs of values in column V1, the values of the VX column are the logical NOTs of the values in column V2, and the values of the VY column are the logical NOTs of the values in column V3.

TEMP = !V1[10:20]

Creates a new column named TEMP, where the first 11 cells contain the logical NOTs of the values in rows 10-20 of column V1. The other cells in TEMP are empty.

TEMP = !V1[1:5]:V2

Creates two new columns named TEMP and VX, each with values in rows 1-5 (the other cells are empty). The values in column TEMP are the logical NOTs of the values of the corresponding rows of column V1, and the values in column VX are the logical NOTs of the values of the corresponding rows of column V2.

Related functions

Function Description
AND Computes the logical AND between two specified data ranges
INVERSE Computes the negative of the contents of the specified data range
OR Computes the logical OR between two specified data ranges
SIGN Computes the sign (positive or negative) of the values in the specified data range