is there a way using a for loop in a for loop to increase a1 and a2 everytime the for loop runs. I want to test if the user types a1 a2, a1 b1, a2 a3, a2 b2 etc all the way up to 10 and then change 'a' all the way up to j. basically i want every combination of a-f with 1-10 and check if that is what the user typed, otherwise i would have to type every combonation
just figured out what exitLoop does but first of all it just says Program ended with exit code: 0 (im using xcode-beta by the way) and also this would just to test if it is like a1 not a1 a2. I need to type in 2 of those and it needs to detect that. thanks for the help though
Sorry for not adding comments. Basically what's going on is first you create an array with the characters you want and create a loop for each variable that will effect final string combination. The code above has 2 different variables which are [character][number] so if you wanna do it with 2 of that sequence you want to create 4 loops. Here: