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 / Help with IF statement...
Power Automate
Answered

Help with IF statement with dynamic content

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello All,

 

 I am trying to write an IF statement expression which includes a dynamic content from a Microsoft Form.

 

This is what I am trying to achieve in Power Automate:

If the Dynamic Content = Full Time , then I want the output value to be = Yes

 

I tried the below for the expression but it shows as invalid expression . I appreciate your help on this. Thanks

If (Dynamic content = 'Full Time' , Yes )

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

    Hi @Emmanuel23 

     

    Could you please tell me:

    Are you trying to output the string yes when the condition is met?
    You should add single quotes around yes.

    if(Dynamic Content='Full Time','Yes',<valueIfFalse>)

    The if function need take three parameters:
    if(<expression>, <valueIfTrue>, <valueIfFalse>)
    I think this link will help you:

    Reference guide for expression functions - Azure Logic Apps | Microsoft Learn

     

    Best Regards,

    Levi

     

  • Emmanuel23 Profile Picture
    Microsoft Employee on at

    Thanks so much Levi - I appreciate the response and the resource shared . 

     

    The link you shared was super helpful . This is how I ended up writing the expression as and it worked.

     

    If (equals(Dynamic Content,'Full Time'),'Yes','No')

    Thanks again !

     

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
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard