Dim a As Int : a = 1
Dim b As Int : b = 1
Dim c As Int : c = 1
Do While a = b AND a = c AND b = c
b = Rnd(1,4)
c = Rnd(1,4)
Loop
Log(a & "-" & b & "-" & c)
Lets assume that a = 1, b = 1 and c = 2.
The conditions:
1. a = b AND a = c AND b = c => Result is FALSE (because b is not equal to c)
2. a <> b AND a <> c AND b <> c => Result is FALSE (because a equals to b)
So the Do While <condition 1> will exit and the Do Until <condition 2> will not exit.