Export Ratings to Textfile

Hi there,

I would like to export all tracks which containing Ratings.
Actually I'm using this loop in my export script.


How I can suppress the script writeing an empty line for each track with no rating?


What about filtering the files before you use the export?
%rating% PRESENT