I'd get rid of your individual named variables, and use an array, naming the array indices instead.
And, as PaulS said, try == instead of = in your ifs.
I'd get rid of your individual named variables, and use an array, naming the array indices instead.
And, as PaulS said, try == instead of = in your ifs.