SetlX and Python handle conditions differently. While setlX conditions always return true or false, python conditions can return everything.
In python None or 2 returns two while the setlx equivilant om || 2 returns an error, because om and 2 are not of type boolean.
SetlX and Python handle conditions differently. While setlX conditions always return true or false, python conditions can return everything. In python
None or 2
returns two while the setlx equivilantom || 2
returns an error, becauseom
and2
are not of type boolean.