Hi all, I tried to seperate some style specific code to external variables. Most things work so far, but the expansion of color causes me problems. I must emphasize that this is no colo-new problem, as my code fails with the old colo-ini too. I have tried several things, but still no luck. What (expansion) magic is missing in my code? Any help is welcome. Peter \setupcolors[state=start] \newconditional\CondA \newconditional\CondB \newconditional\CondC % state dependend color \def\GetFGcolor#1#2#3#4#5{% \ifconditional\CondA \ifconditional\CondC#4 \else#5\fi \else \ifconditional\CondB#1 \else \ifconditional\CondC#2 \else#3\fi \fi \fi}% \starttext %\settrue\CondA %\settrue\CondB \settrue\CondC \setvariables[FOO][foregroundcolor=\GetFGcolor{red}{green}{blue}{lightgray}{darkgray}] \color[red]{color} is working. \edef\FGcolor{\getvariable{FOO}{foregroundcolor}} %\edef\FGcolor{\GetFGcolor{red}{green}{blue}{lightgray}{darkgray}} FGcolor=\FGcolor foregroundcolor= \color[\FGcolor]{\getvariable{FOO}{foregroundcolor}}% no color here \stoptext