IF check for an event's image

I want a conditional branch that checks if an even uses a certain image.
what do I type into the script box?
Code:
$gameMap.event(EVENTID)._characterName === "Insert filename without png inside quotes";

If the check is inside event you can use
Code:
$gameMap.event(this._eventId)._characterName
Code:
$gameMap.event(EVENTID)._characterName === "Insert filename without png inside quotes";

If the check is inside event you can use
Code:
$gameMap.event(this._eventId)._characterName

Works great, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/if-check-for-an-events-image.119007/