Run methods based on a boolean value
<p>Hello I would like to call a method when a boolean is true.
I tried this:</p>

<pre><code>public void checkboxpress(int i){
    assert(day_b_1) ?  uncheckbox() : checkbox();
}
</code></pre>

<p>but this does not work. Ho can I do that?
Thanks</p>
