Search

GetVOrDefault – XpressDox

Get the value of a variable or a default value

Before you can Get a variable using the «GetV()» function, that variable needs to be Set using the «SetV()» or «SetVr()» function. However, there might be a use case where you are unsure that the variable you need has been set, especially in the case of particularly complex templates. In this case you could use the GetVOrDefault function.

 

This is explained in more detail in this article.