isChecked vs is True in the if/else column

what exactly is the difference between is checked & is True

is it just that is checked covers both uppercase & lowercase True/true values. or is there a different use case for the is checked

I don’t believe there is any difference between true and checked at all.
There is however a difference between false and not checked, in that not checked covers both the false and empty states. Whereas false does not cover the empty state.

The important thing to be aware of is that Glide booleans have 3 possible states:

  • true
  • false
  • empty, or null

The default state for a boolean when it is first created will be empty, and it will return to empty if you clear it with a set column values action. That state is neither true or false. This is something that often trips people up when they start testing for false and don’t get the results that they expect - because they aren’t aware (or forget about) the 3rd state (empty).

This is why many of us advise against testing for false, and instead test for either true or not true.
I see checked/not checked as interchangeable with true/not true. It’s just a convenience thing.

When it comes to case, testing that I’ve done suggests that case is unimportant.
That is, true == True == TRUE == tRuE
But of course it’s better to be consistent. My preference is to always use all lower case.

Here is a short video that highlights the difference between true, false and empty:

4 Likes

Thanks @Darren_Murphy

yes I always test for true or not true. otherwise the empty will cause issues.

Yeah, I realise that I probably didn’t give you any new information there. The reason for the slightly verbose response was more for the benefit of other (less experienced) users that might stumble on this thread :wink:

3 Likes