It looks like you are comparing a string to an integer. Take a look at the example below. In the first example—I'm comparing the value in the first Compose action. It's a string.
When you view the output you can see the string number is black. The integer number is green (might be hard to see in the screenshot). A green value indicates an integer.
The condition outputs as false because the string (2) doesn't equal the integer (2).
In this example, I've inserted the output from the Compose action with the integer value.
The condition returns as true because they do match. It's important to note that the is equal to operator looks for an exact match. This means the values you are comparing must also match in type.
In your case, you'll need to use an expression and wrap your dynamic content in an int() function. Alternatively, you can wrap the 2 in the second value field of the condition in a string() function.
For more troubleshooting tips, you may be interested in this YT Tutorial:
Is your Microsoft Power Automate flow succeeding but you’re just not getting the results you expected?
In this Power Automate tutorial, I explore 5 frequently asked questions that pop up when troubleshooting a flow. If you’d like to to level up your Power Automate flow skills and learn how to troubleshoot your Power Automate flow—this tutorial is for you!
IN THIS VIDEO:
✓ How to troubleshoot a false Condition action result
✓ How to get dynamic content when it isn’t selectable from the list of dynamic content
✓ How to troubleshoot an Apply to Each action that isn’t looping through
✓ How to troubleshoot a skipped Apply to Each action
✓ How to troubleshoot a Filter Query
✓ How to use a SharePoint yes/no column in a Filter Query
✓ How to use Compose actions to troubleshoot a Power Automate flow
✓ How to troubleshoot multiple emails being sent
✓ How to troubleshoot multiple Teams messages being sent
Hope this helps!
Consider giving me a
❤️ if you liked my response!
👉 Level up your Power Automate skills by checking out my tutorials on
YouTube👉 Tips and Tricks on
TikTok and
Instagram