ruby/break_v_return.rb
def break_v_return_2(r_v_b)
	counter = 0
	until counter == 10
		puts counter +=1
		return if counter == 5 && r_v_b == "return"
		break if counter == 5 && r_v_b == "break"
	end

	puts "If you see me, a break(or nothing) must have been used"
end
# example that might be easier to understand.
example that might be easier to understand.
example that might be easier to understand .
def break_v_return_2(r_v_b)
	counter = 0
	until counter == 10
		puts counter +=1
		return if counter == 5 && r_v_b == "return"
		break if counter == 5 && r_v_b == "break"
	end
	puts "If you see me, a break(or nothing) must have been used"
end
def break_v_return_2 ( r_v_b ) counter = 0 until counter == 10 puts counter += 1 return if counter == 5 && r_v_b == "return" break if counter == 5 && r_v_b == "break" end puts "If you see me, a break(or nothing) must have been used" end
example that might be easier to understand.
example that might be easier to understand .
r_v_b