I am trying to modify this expression, which works:
color1 = [204,0,0,255]; // shade of red + alpha
color2 = [0,204,0,255]; // shade of green + alpha
r = thisComp.layer("shape").transform.rotation;
if (r > 0) color2/255 else color1/255
To this expression, which does not (only the = sign in the last line is different):
color1 = [204,0,0,255]; // shade of red + alpha
color2 = [0,204,0,255]; // shade of green + alpha
r = thisComp.layer("shape").transform.rotation;
if (r = 0) color2/255 else color1/255