if (something_1_fails()) { ... do something ... } if (something_2_fails()) { ... do the same thing ... }