Do you have that in the same macro?
Try putting the scripts in two different macros, for each press of the macro runs the same thing; you are yet to do a toggle.
I do not currently have access to WoW (accidentally deleted it =/); yet, for all in one macro, you could do something like this:
Code:
/run if setV == 1 then SetView(3); setV = 3; else setV = 1; SetView(1) end
I do not have access to WoW, so I am unable to test it.
Let us know how/if it works!