Hello,

I have a function like this:
Code:
video.addEventListener("play", function(event) {
     // show image A
});
I want it to look like this:
Code:
if (play) {
	show image A
} else {
	show image B
}
How would I achieve this?

Thanks