web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / If(Equals forumla retu...
Power Automate
Unanswered

If(Equals forumla returning second option

(0) ShareShare
ReportReport
Posted on by 61

Hello, 

 

I am using Power Automate flow to to populate a word document but i am having an issue with my If(equals where is is always returning the second option, even when the value matches. 

 

i am using : 

if(equals(outputs('Get_CBHRF')?['body/kflynn_ihavethoughtabouttheimpactonmyothersuppo'],'823600000'),'Yes','No') 

 

The value on the forms are (Choice Column) 

Yes = 823600000

No = 823600001

 

can anyone see what i am doing wrong and why this is always returning no evern when marked yes?

 

Appreciate any help

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Kiara93 

     

    Your expression is right. I did not see any issue in that, 

     

    Could you confirm whether the choice column looks like this ?

    Nived_Nambiar_0-1682646990426.png

     

     

    Also to confirm, use trim around the the variable to trim any whitespaces like below

     

    if(equals(trim(outputs('Get_CBHRF')?['body/kflynn_ihavethoughtabouttheimpactonmyothersuppo']),'823600000'),'Yes','No') 

     

     

     

  • Kiara93 Profile Picture
    61 on at

    Hi Nived, 

     

    i recieved an email saying you had commented and what was in the email was correct and solved my solution but i cant find that comment so i have attached. thank you for your help

  • Verified answer
    Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Kiara93 

     

    Sorry This was the earlier solution which i posted, but i have edited it later as i thought it may not work

     

    But when i experimented in my own system, form results were coming as string, so thought integer/number comparision may not work

     

    This was the solution i have provided earlier

    if(equals(trim(outputs('Get_CBHRF')?['body/kflynn_ihavethoughtabouttheimpactonmyothersuppo']),823600000),'Yes','No') 

     

     

  • Nived_Nambiar Profile Picture
    18,129 Super User 2025 Season 2 on at

    Hi @Kiara93 

     

    Also could you share screenshot of form choice field, just to have a look ?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard