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 returning else(fals...
Power Apps
Answered

If returning else(false) value even though true conditions match.

(0) ShareShare
ReportReport
Posted on by 87

Hi,

 

I have an If() statement as follows for the DefaultSelectedItems of a ComboBox:

 

If(varGroup1=true && varGroup2=false, [“Group1”],[“Group2”])

 

varGroup1 is 100% true and varGroup2 100% false, yet Group2 is always displayed as the default item.

 

what am I missing? Thanks.

Categories:
I have the same question (0)
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @gmbeee Strange! Try revising the formula as,

    If(varGroup1 && !varGroup2, [“Group1”],[“Group2”])
  • gmbeee Profile Picture
    87 on at

    Perfect! Thank you

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @gmbeee Glad the help!

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 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard