DONCORLEON78
06-29-2000, 02:50 PM
I was wondering how to use the if and else statement together correctly with a counter variable.
Let's say I had 5 buttons and I must press those buttons in the correct order 1 through five.
How do I make it so that if button 2 is pressed before 1, or 3 is pressed before 2 the user will get an alert.
Is there a way to set a variable to a counter that increases which in turn would let the browser know the correct order.
Or is there another way that would be better to accomplish this.
Also,
Do you have any pages that focus on explaining the if and else statements and making variables increase kind of like a counter.
Help would be greatly appreciated.
Let's say I had 5 buttons and I must press those buttons in the correct order 1 through five.
How do I make it so that if button 2 is pressed before 1, or 3 is pressed before 2 the user will get an alert.
Is there a way to set a variable to a counter that increases which in turn would let the browser know the correct order.
Or is there another way that would be better to accomplish this.
Also,
Do you have any pages that focus on explaining the if and else statements and making variables increase kind of like a counter.
Help would be greatly appreciated.