Hey. For that you need to implement another Variable outside the loop condition that updates the initialState to what was now the currenState, so that the new initialState is 1 and then when it changes from 1 to 2, the Loop action captures the change.
So the initial variable starts at 0, then it loops through until it changes to 1, then you update the first variable to be 1 (as this is now "new normal"), and then it loops through again - when it then changes from 1 to 2, you do the same mouse click, update variable and start from the beginning again.
Hope it makes sense.
If this provided you with a solution, please mark it as Solution.
Thanks.