How to use flip/flop or branch with a function?

Hi folk, I’m new to Unreal Engine
I want to turn a boolean variable from false to true and vice versa whenever I pulled a lever (I created a BPI) but obviously flip/flop or branch don’t work the way I want. Do you have any suggestions on how to make it possible?

Just

image

1 Like