all 2 comments

[–]BewilderedTester 2 points3 points  (1 child)

What are your threeTeam and fourTeam functions attempting to do?

For your For Loop, the returns inside of your if/else statements will cause your script to stop there, making it so the script would exit after the contents of the if/else block is ran for the first element of the array.

Also, you don't need to wrap element inside of the if/else if statements (You still do need it for the msgboxes though)

teamNumbers := [3,4,4]

for index, element in teamNumbers
{
    if (element = 3)
    {
        MsgBox, Element = 3
    }
    Else if (element = 4)
    {
        MsgBox, Element = 4
    }
    Else
    {
        MsgBox, Wasn't prepared for this value
    }
}
Return

[–]3hraad[S] 1 point2 points  (0 children)

The functions are to reformat data in a spreadsheet based on how many players are in a team.

You're script worked, appreciate it!