for (...) { ... &conflict_check; ... log ... } sub conflict_check { ... if (...) { next; } ... }