This should work:
t1 = key(1).time;
t2 = key(2).time;
t3 = key(3).time;
t4 = key(4).time;
v1 = key(1).value;
v2 = thisComp.layer("Controls").effect("Background Transparency")("Slider");
v3 = thisComp.layer("Controls").effect("Background Transparency")("Slider");
v4 = 0;
if (time < t2)
linear(time,t1,t2,v1,v2)
else if (time < t3)
linear(time,t2,t3,v2,v3)
else
linear(time,t3,t4,v3,v4);
... View more