FlipFlop C++

Hi everyone, I need to flipflop node to c ++. Search the forums and google and the answers have not worked for me. Can anybody help me?

I found this.

But it doesn’t work as expected. Do you know of any other way to write it?


A flip flop is just a simple boolean flow control. So, you need to be a little more clear in clarifying what the problem is.

bool b = false;

void somefunc()
     if (b)
          // do this
          // do that
     b = !b;
1 Like

For some reason my c ++ system does not work the same as in blueprints. following that procedure. when opening the FLIPFLOP macro
Just that appears.
however it did not work the same way for me.

thanks for your reply.

this is the answer it working for me and if it crash try adding another code after the b=!b; thats all thank you EvilCleric.