How to check values stored in variable?

hey, i have stored values of query like this

val_2=$( sqlplus -s rte/rted1@rel75d1 << EOF
set heading off
select source_id from cvt_istats where istat_id > $val_1;
exit
EOF
)
echo $val_2

now , val_2 has five values displayed like this

1
2
3
4
5

what i have to do is to check the values and if it is 1 then then echo 1 pass
and if it is 2 then echo 2 pass and if it is 3 then echo 3 pass , like wise

how should i proceed

thanks

you can use for loop for this..