If Else Audio Prompt Expression

I want to create an audio prompt that does a comparison to determine if it should play prompt number 1, or prompt number 2. However, I'm not sure what the syntax is. Basically, I want to do this:

If(Flow.Value > 1)
ToAudio(Prompt.NumberOne)
else
ToAudio(Prompt.NumberTwo)

I can set this up by using a Decision node instead, but that's just going to add unnecessary clutter to the flow.

If(Flow.Value > 1, ToAudio(Prompt.NumberOne), ToAudio(Prompt.NumberTwo))

2 Likes

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