[SOLVED] Need help with shutting off branching dialogue

I have set up branching dialogue that I only want to run once. I assume I need to use a switch? But how do I place the switch on the dialogue? It seems I am placing it on the NPC event which is switching off the event and the NPC disappears completely. I don't want the NPC to disappear, just to only have the conversation once, then give a simple statement if the Player tries to interact with the NPC again.

I also tried putting an If at the beginning of the dialogue with it On and then setting it to Off after, but when I test it is Off and never On. And I can't seem to find an Else option anywhere?

I'm not sure what I need to search for or if I'm even on the right track?

Thanks.
First off, make a switch for deactivating those dialogues.
Make a conditional branch that activates with your Switch.
Make sure to tick > set handling when conditions not apply.
Put all your branching dialogues on this new conditional branch (put them into "Else" tab).
Above of "Else", just write your regular dialogue. This dialogue will appear when the Switch is on.
most probably your're mixing up switch condition and switch control.

any function involving a switch always has two parts. placing the condition is like locking something, but you'll need the key or control for opening that something outside of the lock.
Thank you both so much. I will go back and hopefully figure it out now that I have a better idea of what I am trying to do and how to do it.
Figured it out. Thanks. I didn't realize I needed a second tab for the switch.

Original thread: https://forums.rpgmakerweb.com/threads/solved-need-help-with-shutting-off-branching-dialogue.90410/