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 / Check if a value exist...
Power Automate
Unanswered

Check if a value exists in an array

(0) ShareShare
ReportReport
Posted on 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

 

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    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

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard