-
long expression for if/then/else
hello guys, i need to find out a sollution for an expression.
i’m using a checkbox that switches colours based on selection.logically it will be if a=0 then b else c.
a should be
(comp(“countries”).layer(“color scheme”).effect(“activate”)(“Checkbox”) == 0)b should be
try{NUME = thisComp.layer(index).name.split(” “)[0];
x = Math.floor(comp(“countries”).layer(NUME).effect(“color scheme”)(“Slider”));
comp(“countries”).layer(“color scheme”).effect(“land ” + x)(“Color”);
} catch(err) {
x = [1,1,1,1]
}c should be
comp(“countries”).layer(thisLayer.name).effect(“country colour”)(“Color”)i don’t know how to include these expressions into if then else text.
please help