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 / To check if input is e...
Power Automate
Answered

To check if input is either this or that...

(1) ShareShare
ReportReport
Posted on by 73
Hi experts
 
I'm working on the following flow where I want PA to check for 3 (1,2,3) inputs. If the inputs are either of the three then it should ask another input.
 
But for some reason it doesn't ask for the second input and runs the remaining flow.
 
Please help
Thanks a lot 🙏
 
The current flow is - 
 
IF cFiles = $'''Open''' THEN
    Display.InputDialog Title: $'''Which bill is this...''' Message: $'''1 - BSES, 2 - DJB, 3 - IGL, 4 - MFs, 5 - Purchases, 6 - Stocks''' InputType: Display.InputType.SingleLine IsTopMost: False UserInput=> BType
    IF BType = $'''[1,2,3]''' THEN
        Display.InputDialog Title: $'''Is it a Receipt?''' Message: $'''y - Yes Receipt, n - No''' InputType: Display.InputType.SingleLine IsTopMost: False UserInput=> Receipt
        ON ERROR
        END
    END
END
 
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at
    Hi,
     
    Assuming user will enter a single digit value.
     
    Pls update the if action as shown below and use 'Contains' operator instead of 'equals to':
     
     
    If this helps & solves your problem, please remember to like and accept my solution as it will help others in the future.
     
     
    Thanks,
    Manish Solanki
    YouTube Channel: Manish Solanki - YouTube
  • SanjayGMusafir Profile Picture
    73 on at
    @ManishSolanki Thanks a lot. That works perfectly. I also experimented with 'contains' but I was doing other way round. And that is why it was generating error. Now when resolved by you, I have realized the mistake I was doing. 
    Thanks 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

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 283

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard