ok i got the issue
because equipment number is character you cannot use "LT 10" which means leass than 10
so you have two have solutions.
Solution 1. If you have possibility to change Equipment number to integer, go ahead.
solution 2:
you can use a function to convert char to integer like MOVE_CHAR_TO_NUM
and then apply same logic you did for line number.
If useful provide some points.
Regards
Keerthi