Is there any command to stop the loop?

I wan’t to play a loop that reads the records from a CSV and does some stuff with it. Is there any command I can use with if/else to stop the loop in a certain situation? Thanks!

Yes, you can call ThrowError inside your if/endif.