I defined a While loop as follows:
While
Match any of the following
var1 does not exist
var2 does not exist
var3 does not exist
var4 does not exist
delay 1000 ms
Would it end as soon as one of the variables is assigned a value?
Yes if one of the condition is not met anymore then it should drop out of the loop. Isn't it what you observed?