at first my MWE:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\def\johnlist{{ala},{bla},{cla}}
% \def\johnlist{2,3,5,7} %This instead of the line above works...
\begin{tikzpicture}
\node[shape=circle,draw=black] at (0,0) {\pgfmathparse{{\johnlist}[1]}\pgfmathresult};
\end{tikzpicture}
\end{document}
I get the following error:
Package PGF Math Error: Unknown function `ala' (in '{{ala},{bla},{cla}}
I've read this and it works, but it's not what I need!
I've read this too and the accepted answer might possibly work, but I can't believe there's no better way! This answer looks promising, but doesn't work either...
Well, I'm searching for hours now and am already proud that I could isolate the error so far, but I'm really getting annoyed now and would greatly appreciate some help!!
{{2,3,5,7}}
. For otherwise text should be inside double quotes{{"a","b"}}
etc