The continue statement causes processing to move to the next sequence, allowing the second clause to override the next-hop set in the first clause. Removing the continue ensures that once the first match occurs, processing stops and the intended next hop is applied.