How do I terminate a function?

Hi there, I’m new to blueprints and have limited knowledge of Programming so bear with me.

I want to terminate a function within a function.

The mesh spawns and re-clicking it reactivates my build mode.

however, I want it to terminate after I have placed an asset and instead, it leaves you can the mesh still in the scene.

I have the function for stopping it I’m just not understanding how to execute it.

  1. Function I wish to terminate = Launch Build Mode.
  2. The Stop build mode function is tested and works but does not in my widget blueprint.

Thank you for any advice or help.