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 / Having problem with IF...
Power Automate
Answered

Having problem with IF statement on true/false

(0) ShareShare
ReportReport
Posted on by 514

I did a GetItems to pull in values from my SharePoint list.

 

One of the values has true/false.

 

I want to say if it is true then display Pass otherwise display Fail.

 

Please advise

 

Thank you

Categories:
I have the same question (0)
  • ccc333ab Profile Picture
    1,144 on at

    Going to guess you need to use an expression for true/false  (i.e., don't just type in true/false into the condition box, use expression)...see below. 

    ccc333ab_0-1622943565634.png

    IF this isn't the issue, can you paste in a screenshot of what you are trying to do, and indicate what is the data type on your SharePoint list for this true/false column. 

  • powercorner Profile Picture
    477 on at

    Hello @sienna28 ,

     

    one little advice, when you want to get helped quickly here in the board.

    Please screenshot your problems so it is much easier for us to understand what you people out there trying to accomplish. 

    I totally agree with @ccc333ab . This is the way it should be done.

     

    With regards 
    Kevin

  • sienna28 Profile Picture
    514 on at

    Thank you for replying.

    I have attached a screenshot to explain a little more.

    Thanksflow issue word.PNG

  • Verified answer
    ccc333ab Profile Picture
    1,144 on at

    Can you also show a screenshot of your condition action that shows where you are comparing.

     

    As an alternative solution to even using a condition, you can create an expression instead at the time of inserting the SteeringWheel column into your template. What you can do is create an expression with something like: 

       if(equals([SteeringWheel], true), 'Pass', 'Fail')

  • sienna28 Profile Picture
    514 on at

    flow solved.PNG

  • Verified answer
    powercorner Profile Picture
    477 on at

    hey @sienna28 ,

     

    I think @ccc333ab would appreciate a "Solution" and a "Kudoe/Thumbs Up" 🙂


    With regards

    Kevin

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution”. This will help the whole community. If I could help you out please give my post a Thumbs Up. 🙂

     

  • sienna28 Profile Picture
    514 on at

    Done - many thanks

  • sienna28 Profile Picture
    514 on at

    Hi

     

    Just tested this a bit more and I am finding my records are all coming out as showing Fail.
    The statement used in the expression is:

    if(equals(outputs('Get_item')?['body/WipersWashers'], 1), 'Pass''Fail')

    I also tried with 
    if(equals(outputs('Get_item')?['body/WipersWashers'], 'Yes'), 'Pass', 'Fail')
    if(equals(outputs('Get_item')?['body/WipersWashers'], true), 'Pass', 'Fail')

     
    Please advise
     
    Thank you
  • sienna28 Profile Picture
    514 on at

    Tried the solution above and seems to work now so can close this thread again.

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard