your loop can be done like that:
alias loop {
var %i = 1
while (%i <= $lines(rserv.txt)) {
if ($read(ruserv.txt,%i) != $null) echo -a $ifmatch
else echo -a $chr(160)
inc %i
}
}