Zum Hauptinhalt gehen

How to replace an empty string when a output field has null value? ADDRESS_1, `${ISNULL(UNIT_NUMBER, '''', UNIT_NUMBER)}`, CITY, STATE, ZIP

Kommentare

2 Kommentare

  • Guillaume Ruelle

    I would put an create an empty value (Create value activity), then test if the UNIT_NUMBER is null ( If activity), then configure two Set Property activities depending on the result of the If (or Text Replace activities). If you find a javascript way to do it, please share :)

    0
  • Berend Veldkamp

    This code

    $someValue.result || ""

    will return an empty string if 'someValue.result' is either undefined or null (or 0, if the variable is not a string but a number).

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.