> By the way, when I tried using
> if selection_case is None:
> ...
> It is not working as I expected it would output the same as in the code I
> have written
Not answering the original question but you can clearly distinguish between
True, False and None, as Justin has rightly pointe
To be honest, there isn't enough context here for me to really understand
what you are trying to do. I would need to see a small real example to
better understand the logic you want to achieve.
But the fact is that you can specifically check for "is None". The question
is really how you want to use
Initially I had defined my selection_case to be False instead of None as I
am not so sure which of the two I should put.
There has been a function before this test() code I wrote that checks for
selection. If there are no selections, it will return None. If there are
selections, it will then che
There can be times when you need to distinguish between a True/False
setting and also whether the setting is even been set at all. That would
call for having the None value. An example would be if you accepted a
boolean option from a user, but you also want to know if the option has
even been provi
Hi all,
I would like to ask for opinion where I am using Boolean to test my
'selection' case.
In the following code, the boolean term for this scenario is called
selection_case
I am sure that there is a term for such scenarios but I am not sure what it
is called
In anyways, can someone kindly