cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gmbeee
Helper II
Helper II

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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
CNT
Super User
Super User

@gmbeee Strange! Try revising the formula as,

If(varGroup1 && !varGroup2, [“Group1”],[“Group2”])

View solution in original post

3 REPLIES 3
CNT
Super User
Super User

@gmbeee Strange! Try revising the formula as,

If(varGroup1 && !varGroup2, [“Group1”],[“Group2”])

Perfect! Thank you

@gmbeee Glad the help!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,963)