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 / If Statement Formula f...
Power Automate
Answered

If Statement Formula for concat

(0) ShareShare
ReportReport
Posted on by 280

Good day experts! Requesting for your assistance please on how I can insert if statement on my formula:

scorpio24_1-1711505667948.png

 

concat('<a href="',item()?['Waiver'], '">Waiver Link</a>') -- if there is no waiver, data should display "-"

 

I wanted the details to be shown in my email like this:

scorpio24_0-1711505569503.png

 

Thank you in advance!

 

 

Categories:
  • Verified answer
    v-yetonggu-msft Profile Picture
    Microsoft Employee on at

    Hi @scorpio24 ,

    Please try this expression:

    if(empty(item()?['Waiver']),<a href="">-</a>,concat('<a href="',item()?['Waiver'], '">Waiver Link</a>'))

    Best Regards,

    Sunshine Gu

  • scorpio24 Profile Picture
    280 on at

    Hi @v-yetonggu-msft sorry but it was saying the expression is invalid 😞

  • scorpio24 Profile Picture
    280 on at

    @v-yetonggu-msft This works for me now with minor changes:
    if(empty(item()?['Waiver']),'<a href="">-</a>',concat('<a href="',item()?['Waiver'], '">Waiver Link</a>'))

    Thank you so much!

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard