I have a loop with the contents akin to the following one. val1 and val2 are values of a column - first and second row(see the pic)
val1
val2
The problem