Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

D toc
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.

D s
snippetBasic

Integer literal value:

D code

derive type:single value: ISODD('3') as: 'isThreeOdd'

Output: Generates the isThreeOdd column containing the value true for each row.

Column reference value:

D code

derive type:single value: (ISODD(countStudents)) as:'missingStudent'

Output: If the value in the countStudents column is an odd number, then write true in the missingStudent column. 

D s
snippetSyntax

D code

derive type:single value:ISODD(int_value)

ArgumentRequired?Data TypeDescription
int_valueYintegerThis value can be an Integer, a function returning an Integer, or a column reference.

D s lang notes

int_value

Name of the columns, expressions, or literals to compare.

  • Missing values generate missing string results.

D s
snippetusage

Required?Data TypeExample Value
YesColumn reference, function, or Integer literal valuemyColumn

D s
snippetExamples

Example - Basic Equal and Notequal Functions

Include Page
EXAMPLE - Comparison Functions Equal
EXAMPLE - Comparison Functions Equal

D s also
labelcomparison