Expand

break

inside for loop body, break out of the inner-most loop.

print file lines until the first empty one
cat file.txt | for $line {
    if $line == "" {
        break
    }
    print $line
}

See Also