The Tag Name doesn't have to match the Visibility State Name, but this is the easiest solution.
As long as the Tag Name is unique for each Visibility State this should work, but then you will have to make a list first so you can find the right Tag:
'((Visibility1 Tag1) (Visibility2 Tag2) (Visibility3 Tag3))