Spoiler anzeigen
[autoit]
MsgBox(0, "Mein erstes Script!", "Halloo :D, führe die Anweisungen durch!")
$alter = InputBox("Los gehts!", "Gib dein Alter ein!")
If $alter < 14 Then
MsgBox(0, $alter, "Du musst über 14 sein!")
Exit
Else
MsgBox(0, $alter, "1.Test:")
$zahl = InputBox("", "1 + 1 =")
If $zahl = 2 Then
MsgBox(0, "", "Richtig!")
Else
MsgBox(0, "", "Falsch! Ende!")
Exit
EndIf
$try = InputBox("nächste Frage", "Wie heisst frau merkel mit vornamen?")
If $try = "angela" Then
MsgBox(0, "", "richtig!")
Else
MsgBox(0, "", "Falsch! Ende!")
Exit
EndIf
EndIf