$o->check(...); unless ($o->state) { $o->actionSet1; } else { $o->check(...); unless ($o->state) { $o->actionSet1; } }