Color variable not working correctly

$if(gv(imgcolor)=NONE, gv(cdmuttc), bp(dmutedtc, gv(imgcolor), gv(muttc)))$ $gv(dmuttc)$

I have a var with the first formula. If I put the formula in a textfield, it shows a color. If I print the var itself(dmuttc) it shows empty.