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:
And logically false = false
Now the problem, when I verify if checkbox.value = false its returns false instead of true:
What I'm doing is converting value to string to solve my issue
Solved! Go to Solution.
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.
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.
agree it's correct and also solved. but I have used the other before and worked. Even redundant was expected to work
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.
User | Count |
---|---|
252 | |
106 | |
96 | |
50 | |
39 |