That won't work because $v1 is set to the %x in this situation, you can simply reverse your if statement and it will work.

Code:
while ( %x <= 3 ) && ( $read(list.txt,%x) ) { 


New username: hixxy