Skip to main content

Notifications

Community site session details

Community site session details

Session Id : kTtvIskS/W0zPufBIZwB9d
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,013 Most Valuable Professional

Leaderboard
Loading started