Hello y'all :)
So here is my issue, please help me!
I have a MS Form in which there is a question with multiple choices, which are :
- I prefer dark chocolate
- I prefer white chocolate
- I prefer milk chocolate
I would like, in power automate / in my flow to use Compose to allow me to change the wordings to :
- I prefer dark chocolate = would become = dark
- I prefer white chocolate = white
- I prefer milk chocolate = milk
I know that expression :
=If(equals(1,1), 'true', 'false')
First of, this expression doesn't work for me. Actually, it works up to this element :
=If(equals(1,1), 'true', 'false')
As soon as I add 'I prefer dark chocolate' I have the message error stating that my expression is not valid.
So I can go up to this point :
=if(equals(outputs('Obtenir_les_détails_de_la_réponse')?['body/r3a8ff7829721433fbc6d4ece6c0c533c'],1), 'yes', 'no')
But that's not really what I need. What I would like is to have something like this :
=if(equals(outputs('Obtenir_les_détails_de_la_réponse')?['body/r3a8ff7829721433fbc6d4ece6c0c533c'], 'I prefer dark chocolate'), 'dark', if(equals(outputs('Obtenir_les_détails_de_la_réponse')?['body/r3a8ff7829721433fbc6d4ece6c0c533c'], 'I prefer white chocolate'), 'white', if(equals(outputs('Obtenir_les_détails_de_la_réponse')?['body/r3a8ff7829721433fbc6d4ece6c0c533c'], 'I prefer milk chocolate'), 'milk')))
So a multiple if statement...
Is it possible ?
Is there a better way to do it ?
What do you think ?
Thank you !!!
Audrey