Hi.
I'm working on a flow that sends an email as a result of a form being submitted.
There are two optional questions on the form. Users can choose to ignore both questions, or they can answer one, but they will never answer two.
I have tried to write an if(empty) expression that does the following:
- Check whether question 1 was answered. If so, display the answer. If not, proceed to step two.
- Check whether question 2 was answered. If so, display the answer. If not, proceed to step two.
- Display "Neither question has been answered."
Here is the expression that I wrote (not working and obviously not the exact expression):
if(empty(question 1 dynamic content), if(empty(question 2 dynamic content), '[Neither question has been answered]', question 2 dynamic content))
Here is the error I'm receiving:
Unable to process template language expressions in action 'Send_an_email_(V2)' inputs at line '0' and column '0': 'The template language function 'if' expects three parameter: the condition to test as the first parameter, the value to return if the condition is true as the second parameter, and the value to return if the condition is false as the third parameter. The function was invoked with '2' parameter(s). Please see https://aka.ms/logicexpressions#if for usage details.'.