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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate: condit...
Power Automate
Unanswered

Power Automate: condition not working, always goes to False

(0) ShareShare
ReportReport
Posted on by
Hello everyone,
 
I've been working on this flow for some days but I'm stuck at the last part of the flow with the condition.

I have a flow in Power Automate where I retrieve a value Score from an Excel file (using the Get a row action).
I'm also testing first before I make the real one, so I made a short test to figure out if this flow works.

I have a Condition with:

Score is equal to 2 or greater than 2

If the score is 2 or greater than 2, the flow should go to True and perform an action.

But at this moment, it always goes to False. Even if the score is 2 or greater than 2.

Idealisticly: I want to use it the way I put it in the screenshot, but that doesn't work.

I have already tried:

- Converting the Excel column to a number.

- Comparing the value in Advanced mode with:

@equals(int(trim(outputs('Get_a_row')?['body/Score'])), 3)
However, this doesn't work because I get an error when I add the int and trim (this is what ChatGPT gave as advice).

- Testing the flow multiple times with different values

But it still always results in False.

Does anyone know why this comparison doesn’t work and how I can make the flow go to True when Score is 3?

vb.PNG
Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,705 Super User 2026 Season 1 on at
    Not sure where the @equals comes from.  The proper definition should look more like
     
    "operationName":"Condition","operationDefinition":{"type":"If","expression":{"and":[{"greaterOrEquals":["@variables('Score')",2]}]}
  • Cgangweg01 Profile Picture
    876 Super User 2026 Season 1 on at
     
    I was working on offering an answer as well. Perhaps between the posts here you'll have a solution.
    Hope this helps!
     
    See screen shots with explanation:
     
    I mocked up an Excel file with a Score column and used the List rows action to get the records from Excel.
    Records three and four have score greater than 2.
     
    The condition expression for each row:
     
    int(items('For_each')?['Score'])
     
     
    Successful test run, record three and four are true:
     
    Update: also worked with "is greater or equal to"

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 921

#2
Valantis Profile Picture

Valantis 801

#3
Haque Profile Picture

Haque 588

Last 30 days Overall leaderboard