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 / Condition Expression M...
Power Automate
Answered

Condition Expression Marking as False Despite Being True

(0) ShareShare
ReportReport
Posted on by 6
I have a function within a flow that checks if a given IP address is within the Private ranges. The flow breaks down the IPv4 address into four Octets, and then uses a condition expression to tell whether it is a public or private IP. The expression can be seen below:
 
For some reason when I've run this against a 10. IP address the OR marks itself as False, despite matching with the 10. section.
Is anyone able to advise why this is happening? In my mind the logic I've put here is: ((Octet 1 = 10) OR (Octet 1 = 172 AND Octet 2 > 16 AND Octet 2 < 31) OR (Octet 1 = 192 AND Octet 2 = 168)). Am I mistaken?
Categories:
I have the same question (0)
  • VI-07051616-0 Profile Picture
    11 on at
    Try to switch to the old editor.
  • CU17060734-0 Profile Picture
    6 on at
    Hi VI-07051616-0, I have tried that but have the same outcome, Expression result false.
  • Verified answer
    Chriddle Profile Picture
    8,704 Super User 2026 Season 1 on at
    Are you comparing different data types?
    Check this and, if necessary, specify the data type of your values ​​( int() ).
  • CU17060734-0 Profile Picture
    6 on at
    Hi Chriddle, I've adjusted the Octets so that they specify that they're integers and that seems to have worked. Not sure why that's needed when the images sent above show it clearly matching without it. Thank you for your suggestion, I probably wouldn't have considered it being something that small.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 427

#2
Vish WR Profile Picture

Vish WR 316

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard