Announcements
Hi,
Anyone know how to solve the problem of if conditional statement in adaptive card with power automate?
Having this issue, thanks.
Hi @blacklist1,
I believe there is logical comparison function for this called greaterOrEquals.
Try something like the below in your color property:
${if(greaterOrEquals(change,0), 'Good', 'Attention')}
Did this and its working on VS Code and the Adaptive Designer.
But once I use it in adaptive card in power automate, it don't show any color.
Hi @blacklist1
I see you are using version 1.2 for the card. Have you tried it with version 1.3?
{ "type": "AdaptiveCard", "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.3" }
Are you testing in teams or in the adaptive designer? I have seen issue before with the designer website, while it did work in Microsoft Teams itself 😁
https://powerusers.microsoft.com/t5/General/Conditional-formatting-for-adaptive-cards/m-p/1514296/highlight/true#M3379
Hi, I tried to use 1.3 but still having the same error, its working on the designer and vs code, but once i use it in powerautomate (send an adaptive card to a chat via teams, it doesnt work)
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.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
David_MA 262 Super User 2026 Season 1
Haque 227
Expiscornovus 225 Most Valuable Professional