inside for loop body, break out of the inner-most loop.
for
cat file.txt | for $line { if $line == "" { break } print $line }
continue