Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This document explains how to check for an Empty empty string in the Flow studio using Evaluate Control.

...

You have to use the Evaluate control to check for an empty string in flow the Flow studio.

  1. Drop the Evaluate control onto the canvas.

  2. Select Custom from the Input node list. (You will have access to the entire msg object when you use Custom from the list.)

  3. In the input field, add the empty string property path (as a mustache tag).
    In this example, it is at msg.orbita.session.emptyString

  4. In the pin options, select “matches regex“ from the list and add the below Regex to evaluate.

    Code Block
    ^\s$

The regex ^\s$ will match an empty string or a single space.
If you want to match an empty string or multiple spaces, use ^\s*$

...