Skip to main content

Notifications

Community site session details

Community site session details

Session Id : O6iaARdfHqNmxCv0h9dYKd
Power Automate - Building Flows
Answered

Check if a value exists in an array

Like (0) ShareShare
ReportReport
Posted on 24 Mar 2023 11:35:50 by 187

I'm having trouble with validating if a value exists in an array because it always comes out as false. The values to be compared are just single integers against the array but it doesn't validate it the way I need it to.

 

Revlock97_0-1679657733196.png

 

Revlock97_1-1679657742680.png

 

  • Verified answer
    grantjenkins Profile Picture
    11,059 Super User 2025 Season 1 on 24 Mar 2023 at 11:50:35
    Re: Check if a value exists in an array

    Your array of numbers are strings "1", "2", "3", etc. Comparing 1 = "1" is not equal (would return false). If you are comparing a number to a string, then you need to either convert the number to a string, or the string to a number so the data type matches as well as the value.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
David_MA Profile Picture

David_MA 161 Super User 2025 Season 1

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 148 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 139

Overall leaderboard
Loading started