How to implement a if test in a customized class
<p>Is there something like <strong>_<em>if</em>_</strong> or <strong>_<em>not</em>_</strong> methods implemented in a customized class? So when I instantiate a new class, I can use </p>

<pre><code>if myobject:
    return True
</code></pre>

<p>or</p>

<pre><code>if not myobject:
    return False
</code></pre>
