Question
Variable Order of Selction
Okay, here is another head scratcher – at least for me.
I'm making a multiplication table and posing a question like "5 x 7 = ?"
Then the user clicks on the factors along the side and the row or column gets highlighted.
The problem is that they could select either factor in either a row or a column first. If they select in a row I need to make sure the next one is in a column and vice versa.
The only solution I'm coming up with is a crazy string of if, else, and if else conditional statements. There has got to be a cleaner way.
I'm making a multiplication table and posing a question like "5 x 7 = ?"
Then the user clicks on the factors along the side and the row or column gets highlighted.
The problem is that they could select either factor in either a row or a column first. If they select in a row I need to make sure the next one is in a column and vice versa.
The only solution I'm coming up with is a crazy string of if, else, and if else conditional statements. There has got to be a cleaner way.