These two loops do not produce the same result:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\foreach \i in {a,b,c} {%
\i+
}
\def\Index{a,b,c}
\foreach \i in {\Index} {%
\i+
}
\end{document}
Why is this? How do I get \foreach to iterate over the comma-separated content of \Index even though it looks like a single token?

\foreach \i in {\Index}by\foreach \i in \Index– Ignasi Oct 15 '19 at 14:20