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 Expression does not...
Power Apps
Unanswered

If Expression does not work as expected

(0) ShareShare
ReportReport
Posted on by 79

Hi all,

I have a radio button with an OnSelect validation, which does not work. 
If I choose for both "Not applicable " it is supposed to end  in "Not defined" but  it ends in "Low Risk". 

If(
 'Radio1.1_1'.Selected.Value = "No" Or 'Radio1.1_1'.Selected.Value = "Not applicable" Or IsBlank('Radio1.1_1'.Selected.Value) And 'Radio1.2_1'.Selected.Value = "Yes" Or 'Radio1.2_1'.Selected.Value = "No",
 Set(
 varResult,
 "Low Risk"
 ),
 Set(
 varResult,
 "Not defined"
 )
);

 

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    To use And and OR both you need to use brackets.

     

    If(
    'Radio1.1_1'.Selected.Value = "No" Or 'Radio1.1_1'.Selected.Value = "Not applicable" Or IsBlank('Radio1.1_1'.Selected.Value) And ('Radio1.2_1'.Selected.Value = "Yes" Or 'Radio1.2_1'.Selected.Value = "No"),
    Set(
    varResult,
    "Low Risk"
    ),
    Set(
    varResult,
    "Not defined"
    )
    );

  • xxYYxx Profile Picture
    79 on at

    @zmansuri 
    Thank you very much for your fast reply. 
    It seems that your provided fix is not complete, because the brackets needs to be in the Or part (after the first Or) as well. 
    But thanks anyway!

  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    Glad you worked it out. you can close the thread by clicking accept as solution. 

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard