I have built a Powerapp which needs to pass the value from a toggle control to a flow
the variable gets initiated with the value true which is fine
However , I need to convert the string value into Yes or No.
I created another variable that does the follow
if(equals(outputs('ForceEnd'),'false'),'No','Yes')
but I get the following
Unable to process template language expressions in action 'Initialize_variable_2' 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 '1' parameter(s). Please see https://aka.ms/logicexpressions#if for usage details.'.
Can you please help?


Report
All responses (
Answers (