vex: fixins

* quotes not needed in this case inside [[ expression ]]
* fix logic inside toggle()
* make logic more explicit in swap() and in the toggle loop