One can also break out of the LOOP and return the so far accumulated value:
CL-USER> (loop for i from 1 below 10
sum i
when (= i 6)
do (loop-finish))
21
EDIT: I always do formatting wrong on here.