Learn French: Il allait abandonner, mais il a continué. - He was going to give up, but he continued.