Creating a Decision expression (IF()) with user input

I've defined a Collect Input node in my call flow that accepts a single character ("1 for yes, 2 for no") that evaluates to a string. I want to route the call to our Customer Service queue if they enter 2, or anything other than 1, really.

The expression seems straightforward, but I can't seem to define the Boolean condition correctly.

The Collect Input is defined as a string:

What's the proper syntax to evaluate whether that input, Task.SubmittingInventory, is a "1" or not?

The following is not the way, alas: If((Task.SubmittingInventory="1"), true, false)

(Press one for )

Decision if customer pressed 1

Flow example and failure path (everything else then 1). You can also do with a Switch action.

ps. community.mypurecloud.com (also) good place for Architect questions..

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.