THanks for informing DAN.
Below is a script that I took from one of your answers online, I want modify this when the counter goes 0, the keyframe should play. is it possible. Can you show how to achieve this
var clockTime // this is my counter value, script not shown here for simplicity.
// So when this var goes 0, I need the valueAtTime to play.
L= thisComp.layer("EDIT");
n = 0;
if (L.marker.numKeys > 0){
n = L.marker.nearestKey(time).index;
if (L.marker.key(n).time > time){
n--;
}
}if (n == 0){
valueAtTime(0);
}else{
t = time - L.marker.key(n).time;
valueAtTime(t)
}