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 Apps / IF CONDITION NOT CORRE...
Power Apps
Answered

IF CONDITION NOT CORRECTLY WORKING

(0) ShareShare
ReportReport
Posted on by 36

Hello,

I have the following issue:

I need to check the information in 2 dropdown boxes and depending on them the information of an input text field should be updated.  I've tried to use IF CONDITION but I'm doing it wrong and I don't know how to solve.

I'd appreciated if you could help me.

This is the wrong sintaxis I've tried:

If(DataCardValue2.SelectedItems="OK" &(DataCardValue3.SelectedItems ="OK";"OK";"PENDING").

 

Categories:
  • rbrooks66 Profile Picture
    143 on at

    If((DataCardValue2.SelectedItems="OK") & (DataCardValue3.SelectedItems ="OK");"OK";"PENDING")

  • Himanshu_90677 Profile Picture
    416 on at

    If(DataCardValue2.SelectedItems="OK" && (DataCardValue3.SelectedItems ="OK";"OK";"PENDING")

     

  • Verified answer
    Aapok Profile Picture
    on at

    The reply above has incorrect syntax.

     

    You can try:

    If( DataCardValue2.Selected.Value = "OK" && DataCardValue3.Selected.Value ="OK";"OK";"PENDING")

     

    I tested this with two Combo boxes and it worked for me. I'm assuming you have ; as your separator, for me the separator is , but I've changed it in my answer to match your original post.

  • rbrooks66 Profile Picture
    143 on at

    Not sure about the double & but the parentheses are unmatched.

  • Himanshu_90677 Profile Picture
    416 on at

    Helloo @BeaGD  Try This

    If(DataCardValue2.Text = "OK" && DataCardValue3.Text = "OK","OK","PENDING")

  • BeaGD Profile Picture
    36 on at

    Thanks a lot. It works!

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 Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard