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 / Problem with checkbox....
Power Apps
Answered

Problem with checkbox.value = boolean

(0) ShareShare
ReportReport
Posted on by 103

Hi

I'm facing a very strange issue while comparing Checkbox.Value = bool.

 

I'm using the below code inside a Textbox.Visible:

If(chkIsAff.Value = false, true, false)

The problem is that it is returning false.

 

See checkbox.value has false value:

 

Wedlib_0-1639604776213.png

 

And logically false = false

Wedlib_1-1639604852549.png

 

Now the problem, when I verify if checkbox.value = false its returns false instead of true:

Wedlib_2-1639604959039.png

 

What I'm doing is converting value to string to solve my issue

Wedlib_3-1639605039277.png

 

 

 

 

Categories:
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Wedlib 

    Using If statements on a Boolean value to then return a Boolean value is redundant.

    If(true, true, false) is redundant because true is already true.  

     

    Change your formula to chkIsAff.Value ONLY.   If you want the inverse of that, then change to !chkIsAff.Value

     

    I hope this is helpful for you.

  • Wedlib Profile Picture
    103 on at

     agree it's correct and also solved. but I have used the other before and worked. Even redundant was expected to work

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Wedlib 

    The formula editor gets confused on it and show incorrect value.  I've seen that many times and don't rely on it quite like I would want.

     

    Basic thing though is, if you are trying to set any property that needs true or false...skip the If statement as it's just extra typing.  And, in some cases the formula editor will behave properly.

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard