Code: Select all
\usetikzlibrary{math}
\begin{tikzpicture}
\tikzmath {
\a[1]=5;
\c=\a[1]; {\node at (0,0) {\c}; };
};
\end{tikzpicture}
\c=\pgfmathparse{\ax[1]}\pgfmathresult;
but I keep getting the error "extra \else".
Any thoughts?
Thanks!
-Dan
Addendum: By the way. That TikZ manual isn't really helping me all that much anymore. It reads like Hamlet. Is the TikZ language based on a programming language that I could try to learn something about? What I would call the basics of TikZ has been relatively easy to learn, but the stuff I've been doing recently is really stretching my abilities, and it shouldn't be that hard to learn. How to use matrices, for example. My last programming language is FORTRAN and I'm getting the feeling I'm missing three decades of programming changes.