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?

Thanks

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
     }
     else
     {
          // do that
     }
     b = !b;
}

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.