1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
def check(x, retries) if x > 42 nil end if retries >= 10 nil end if x < 3600 nil end if 100 <= x nil end if x == 255 nil end if x != 1024 nil end end