Linking multiple keyframes to layer markers! PLEASE HELP :'(

AFTER EFFECTS
Hey there! First of all, thanks for entering and helping me… The thing is: I have a precomp named “Title” that has an “IN” animation (with 2 keyframes), then it changes from TEXT 1 to TEXT 2 (2 keyframes) and the final “OUT” animation (2 keyframes). I want to link each animation to a single markers (so 1 marker for the IN, another marker for the “T1 to T2” and another marker with “OUT”).

I was trying to use Ben Ebberts expression but I just can’t modify it succesfully!

Ben’s expression:

L = thisComp.layer(“Title_02”);
if ((L.marker.numKeys > 1 ) && (numKeys > 3)){
dIn = key(2).time - key(1).time;
dOut = key(4).time - key(3).time;
tIn = L.marker.key(1).time;
tOut = L.marker.key(2).time;
if (time < L.marker.key(2).time)
linear(time,tIn-dIn,tIn,key(1).value,key(2).value)
else
linear(time,tOut,tOut+dOut,key(3).value,key(4).value);
}else
value