Hi Thomas, thanks for your reply, but that link has nothing to do with my question/problem.
That post points to a bug with JSON/after effects- which i know about and have experienced within my project from trial and error, but I do not believe it’s my problem here.
To sum it up, the main problem here is that I am not fully understanding how the expression code written is functioning hence why I am unable to provide a solution. I am a beginner to expressions and this code is a bit too advanced for me. ☹
Many thanks