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 / Logic condition always...
Power Automate
Unanswered

Logic condition always returns FALSE!

(0) ShareShare
ReportReport
Posted on by 2,295

This is my Excel table:

 

WebPortal_0-1603825392154.png

 

This is the Flow:

WebPortal_1-1603825414897.png

 

When I test it, the logic test of the condition always returns "FALSE":

 

WebPortal_2-1603825473603.png

 

WHY????

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @WebPortal 

     

    Try to convert the excel value to integer using int() expression.

     

    image.png

  • WebPortal Profile Picture
    2,295 on at

    @abm 

    Sure, what you're proposing is exactly the same what I'm doing.

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @WebPortal 

     

    I couldn't see that in the screenshot you provided? You are not converting to integer. Are you saying that you tried to convert to integer and its not working?

     

    Thanks

  • tom_riha Profile Picture
    10,185 Most Valuable Professional on at

    Or try to convert the 1 into string, instead of 1 put there '1'.

  • WebPortal Profile Picture
    2,295 on at

    @tom_riha 

     

    I did (although I have no clue why), but I still get always false.

  • WebPortal Profile Picture
    2,295 on at

    @abm 

     

    The column "Numero" is an integer in Excel.

     

    In Power Automate I'm getting that column for the 1st part of the condition, how (and why) am I supposed to FORCE IT AGAIN an integer?

     

    Thanks

  • Verified answer
    Paulie78 Profile Picture
    8,422 Moderator on at

    Because it gets converted to json. Use

    string(1)

    in the right side of the comparison

    StringNumber.PNG 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi 

     

    I have tested this now. If you convert to int() it should work as expected. Below the expression I used is

     

    int(items('Apply_to_each')?['Taken Days'])
     
    Here Taken Days is my excel numeric column.

     

    image.png

     

     

    My test result

     

    image.png

  • WebPortal Profile Picture
    2,295 on at

    @Paulie78 

    You're kidding me 😁😂!

    This is crazy... anyway, it worked!

  • WebPortal Profile Picture
    2,295 on at

    🙂

     

    Thanks, this is too bizarre to me..

     

    SELECT * FROM 
    
    WHERE this == that

     

    Has been invented some 40 years ago, and it always worked!

     

    Anyway, I'm trying the zen mode and to learn something new, thank you so much!

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard