In the Python console:
>>> a = 0 >>> if a: ... print \"L\" ... >>> a = 1 >>> if a: ... print \"L\" ... L >>&g
0 is a falsy value in python
Falsy values: from (2.7) documentation:
zero of any numeric type, for example, 0, 0L, 0.0, 0j.