Colors are arrays, so I think you need to check them element by element. Also, floating point values may not match exactly, so I think I’d include a “close enough” tolerance. Something like this:
tolerance = .001;
yellow_color = [0.973,0.831,0.055,1];
function compareColors(color1,color2,theTolerance){
for (i = 0; i < color1.length; i++){
if (Math.abs(color1[i] - color2[i]) > theTolerance) return false;
}
return true;
}
color = comp("_FF_Dark_01").layer("CHANGE_COLOR_HERE").effect("Color Control")("Color").value;
compareColors(yellow_color, color, tolerance) ? 100 : 0