Excerpt |
---|
Returns true if the argument is an odd value. Argument can be an Integer, a function returning Integers, or a column reference. |
Since the function returns a Boolean value, it can be used as a function or a conditional.
Integer literal value:
D lang syntax |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | derive type:single value: isodd('3') as: 'isThreeOdd' |
---|
|
isodd('3') |
Output: Returns the value true
.
Column reference value:
D lang syntax |
---|
RawWrangle | true |
---|
Type | ref |
---|
showNote | true |
---|
WrangleText | derive type:single value: (isodd(countStudents)) as:'missingStudent' |
---|
|
isodd(countStudents) |
Output: If the value in the countStudents
column is an odd number, then return true
.
D lang syntax |
---|
RawWrangle | true |
---|
Type | syntax |
---|
showNote | true |
---|
WrangleText | derive type:single value:isodd(int_value) |
---|
|
isodd(int_value) |
Argument | Required? | Data Type | Description |
---|
int_value | Y | integer | This value can be an Integer, a function returning an Integer, or a column reference. |
int_value
Name of the columns, expressions, or literals to compare.
- Missing values generate missing string results.
Required? | Data Type | Example Value |
---|
Yes | Column reference, function, or Integer literal value | myColumn |
Example - Basic Equal and Notequal Functions
Include Page |
---|
| EXAMPLE - Comparison Functions Equal |
---|
| EXAMPLE - Comparison Functions Equal |
---|
|