yes you can go to the same state based on a variable you just need to set the correct conditions in transitions