The operator | is undefined for the argument type(s) boolean, void
<p>Hi i just keep getting that error and im kind of a newbie and dont know wahats going on. Thanks for the help in advance</p>

<pre><code>            if(txtvi1.getText().toString().equals("") | txtvi2.getText().toString().equals("") | txtvi3.getText().toString().equals("") | txtvi4.getText().toString().equals("")| txtvi5.getText().toString().equals("") | txtvi6.getText().toString().equals("") | txtvi7.getText().toString().equals("") | txtvi8.getText().toString().equals("") |  checkbx1.setChecked(false)) {
                    Toast.makeText(getApplicationContext(),  string, 5000).show();

                } else {
                    Toast.makeText(getApplicationContext(), string2, 5000).show();
                }
</code></pre>

<p>So the error is in the checkbox i just want the toast to appear if any of the textview are empty or if the checkbox is unchecked.
If it is possible how can i do it?</p>
