![](https://secure.gravatar.com/avatar/4f8800a13803fdf10548a64e78bec270?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Var firstRun = true
Marko had mentioned:
>"I have logic in this callback that I ONLY want to execute once so I'm getting into trouble with this. I don't want to use some stupid 'var firstrun = true' mechanism for obvious reasons."
on this post:
http://support.jwplayer.com/customer/portal/questions/12991178-start-a-playlist-at-a-specific-index-and-calling-onplaylistitem-only-once
I'd like to have a WORKING example of this stupid mechanism :P, thanks in advance.