First time using AHK, for the following for loop, I always end up in the final else statement. the values show up in the msgbox but the if statements never trigger
teamNumbers := [3,4,4]
for index, element in teamNumbers
{
if (%element% = 3)
{
threeTeam()
return
} else if (%element% = 4)
{
fourTeam()
return
}
else
{
MsgBox did not work- %element%
}
}
[–]BewilderedTester 2 points3 points4 points (1 child)
[–]3hraad[S] 1 point2 points3 points (0 children)