I have a situation where I need to access a variable which is defined after it is used in the text. An example of what I'm trying to achieve is below, essentially the definition of variable happens later in the latex document which obviously causes a compiler error.
\begin{document}
\Varirable
\renewcommand{\Varirable}{Updated}
\end{document}
Is there anyway I can somehow forward declare the variable and when it compiles it cross-references it so it can be updated with the correct value (which is defined at the end)?

