How can I cancel a function?

that is so smart!! I completely forgot about the logic type thank you so much!! :smiley: