I have the following:
\documentclass{article}
\usepackage{amsmath}
\usepackage{witharrows}
\begin{document}
\def\var{x}
[
\begin{WithArrows}
\var\var&=\def\var{y}\var\var\
\var
\end{WithArrows}
]
\end{document}
I wanted to change the \var value to y but it only works for the \var immediatly after the \def and on that line.
The result of the compilation is:
And I'm wondering why the \var on the second line is not affected by the instruction above.

