ISODD macro
The ISODD
macro
is available only in Unica Campaign.
Syntax
ISODD(data)
Parameters
data
The
numerical values to test if they are odd. 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
ISODD
tests
each value in the specified data set for oddness. It returns one new
column for each input column, each containing a one for all odd values
(that is, the value modulo two is one) or a zero for all non-odd values
(that is, even values).
INT
is applied first. For example, ISODD(2.5)
= 0
, since 2
is not odd.Examples
TEMP = ISODD(-3) Creates
a new column named |
TEMP = ISODD(V1) Creates
a new column named |
TEMP = ISODD(V1:V3) Creates
three new columns named |
TEMP = ISODD(V1[10:20])
Creates a new column named |
TEMP = ISODD(V1[1:5]:V2)
Creates two new columns named |
Related functions
Function | Description |
---|---|
ISEVEN |
Tests if input values are even (that is, divisible by two) |