You can do it exactly as you outlined in your posting (X:=f(v)[0, etc.) or even better put on the LHS a 2x1 vector consisting of the variable names X and Y and on the RHS just f(v).
The problems you experience (which?) ,may be because you define v as a range and not as a vector.
Translate
Windchill Satisfaction Survey
Help shape the future of Windchill. Take our 5-minute survey and share your feedback.