SIGN macro
The SIGN
macro
is available only in Unica Campaign.
Syntax
SIGN(data)
Parameters
data
The
numerical values to compute the sign 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
SIGN
tests
the sign of the values in the specified data range. It returns one
new column for each input column, each containing the sign of numbers
in the corresponding input column. Positive one is returned for all
values greater than zero; negative one is returned for all values
less than zero; zero is returned for values of zero.
Examples
TEMP = SIGN(-3) Creates
a new column named |
TEMP = SIGN(V1) Creates
a new column named |
TEMP = SIGN(V1:V3) Creates
three new columns named |
TEMP = SIGN(V1[10:20])
Creates a new column named |
TEMP = SIGN(V1[10:50]:V2)
Creates two new columns named |
Related Functions
Function | Description |
---|---|
ABS |
Computes the absolute value of the contents of the specified data range |
INVERSE |
Computes the negative of the contents of the specified data range |