From: Josselin Date: 2007-02-18T20:45:05+09:00 Subject: exit in a bloc DRY way... I wrote this code that's running well.. origin = false contact.each {|c| origin = true if c.from == parameter } nb -= 1 if origin is there any way to write it in one line ? (exiting from the bloc when the condition is true) something like : contact.each {|c| nb -= 1; exit; if c.from == parameter } tfyl joss