Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version next

...

Info

NOTE: Within an expression, you might choose to use the corresponding operator, instead of this function. For more information, see Comparison Operators.

 

D s
snippetBasic

IFEQUAL
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
if(
equal(errorCount, 0),'ok','Error_recorded') as:'status'

if(equal(errorCount, 0),'ok','Error_recorded')

Output: If the value in the errorCount column is zero, then the status column value is ok. Otherwise, the value is Error_recorded

D s
snippetSyntax

EQUAL
d-codelang-syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value:
equal(value1, value2)

equal(value1, value2)


ArgumentRequired?Data TypeDescription
value1YstringThe first value. This value can be a String, a number, a function, or a column reference.
value2YstringThe second value. This value can be a String, a number, a function, or a column reference.

...