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 it to achieve some kind of goal here.

On Sat, 24 Sep 2016, 4:34 AM yann19 <[email protected]> wrote:

> 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 check if the selections fulfills the nodetype
> criteria as defined in wihin sel_custom and sel_orig.
>
> Hence my usage of:
>     if selection_case:
>         ...
>     else:
>         ...
>
> In cases like this, should I just put it as selection_case = False instead?
>
> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/54b3089d-5e19-43d4-b520-fb7595632142%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/54b3089d-5e19-43d4-b520-fb7595632142%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1-9oPa1%3DE-9bXOXyo%2BqnOmPp0PvV8ULnt-jnS4m7D2kQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to