-
|| operator not working
Even though the expression below is not broken and is partially working (the x part of it works as expected) the y part is completely ignored regardless of the condition being met.
Can anyone help me understand why the effect doesn’t increase its value when y is less than 810?
Thanks.
x=thisComp.layer("NULL CONTROL").effect("XrotSpd")("Slider");
y=thisComp.layer("NULL CONTROL").effect("YrotSpd")("Slider");if
(x<1237
||
y<810)
{linear(x,0,1237,0,100);
}
else
0
;