Hi,
I'm new to AutoIT, I Have a loop that I would like it to exit if the value of the variable $false = 1, but it doesn't work. I know that I can use exitloop, but for my learning purposes I would like to understand why my code doesn't exit when the value of $false changes to 1
Global $Question1, $Question2, $Question3, $false, $true, $score
Global $Reponse1, $Reponse2, $Reponse3
$Reponse1 = '+'
$Reponse2 = '+'
$Reponse3 = '-'
$false = 0
while $false = 0
$Question1 = InputBox("Question 1","Question 1? :")
If $Question1 <> $Reponse1 Then
$false = 1
EndIf
$Question2 = InputBox("Question 2", "Question 2 :")
if $Question2 <> $Reponse2 then
$false = 1
EndIf
$Question3 = InputBox("Question 3","Question 2 :")
if $Question3 <> $Reponse3 Then
$false = 1
EndIf
MsgBox(0, "Resultat", "votre score est :", $false)
WEnd