They weren't using a conditional to check if it was the actor's turn, they were forcing the statement to evaluate true so that the first actor's HUD element was yellow all the time.
MZ SRD Hudmaker highlight current actor's name on turn
Javascript/Plugin SupportNo? Post #19 shows a properly-written conditional with a return statement, and the OP says it's working as intended on the different actors' turns.
I swear that post got ninja edited because that's not what I remember it saying.
Original thread: https://forums.rpgmakerweb.com/threads/srd-hudmaker-highlight-current-actors-name-on-turn.159269/