Code:
if (%vplook = 1) { return }

should be
Code:
if (%vplook == 1) { return }

Looks not perfect, but should work as you wanted.