Thanks Dan!
Your approach makes sense, but I actually found a different answer that worked before you replied. I tried to update my post as “answered”, but was censored by the moderator?!????
Hopes this reply goes through.
PS pretty proud of myself figuring out this by myself before Dan himself came to the rescue. My solution worked, but Dan’s solution is probably more well-considered?
Thanks anyway ????
m = thisComp.layer("Ketil");
n=0;
if (m.marker.numKeys > 0){
n = m.marker.nearestKey(time).index;
if (m.marker.key(n).time > time) n--;
}
if (n > 0) m.marker.key(n).comment.replace(/[0-9]/g,'') else "not available"