I don’t understand why this loop exits immediately on the first turn and doesn’t wait for the value to be equal to 4.
mycount=1
while mycount < 4
IF Mycondition then
messagebox(“Mycondition verified !”)
gestione1.ShowModal
else
messagebox(“Mycondition NOT verified !”)
mycount = mycount + 1
end if
wend
messagebox(“The OTP verification attempt limit has been exceeded. The procedure will be closed.”)
self.close
Longtime ago, I had troubles with Less Than (<) and Greater Than (>); a friend helped me and the troubles goes away since then.
But sometimes I made errors with Boolean; I do not try to understand, I swap the code and it works !