How to end a conditional branch after one use, but still use the remaining commands?

I'm really new at this, and in one of the games I'm making I need a character to call out to the player only if there is a certain character in the party, while the player is leaving.  I managed to do that, but now every time the player walks in and out they are spoken to when they only really need to be spoken to once.  How can I fix this? 
Can you provide a screenshot of this event? Would help a lot, in helping you, if you don't mind.
Use a self switch after the event has finished to turn it off with?
Or a switch, if other things depend on this happening as well.
I'll try the switch.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-end-a-conditional-branch-after-one-use-but-still-use-the-remaining-commands.36024/