GetVn – XpressDox

GetVn gets the value of an XpressDox variable where the value is known to be numeric

Reference material:

Please read through this article to understand the difference between data elements and variables.

And this article for an overview of working with variables in an XpressDox template.

And for reference, here is a post containing a comprehensive list of all the commands about variables.


Forcing a number

The ToNumber function would perform a similar function to that of GetVn : «Party[ToNumber(GetV(‘Counter’))]/Name».  In that scenario, the Counter variable would be forced into a number.

You could write that same function like this: «Party[GetVn(‘Counter’)]/Name».