public void somefunction() { if (somecheck || someothercheck) { return value; } if (notsomecheck) { return value; } //do actual stuff }