Macro - Store Local Variable similiar to DoOnce

Hey guys! Maybe I’m doing it wrong, so I appreciate any help!

Using macros, it seems I cant store variables like unreal does with their standard Macro Functions (DoOnce, FlipFlop). I copied FlipFlop inside my own macro, resulting in getting everytime the A Output.

I would like to achieve a macro similiar to DoOnce

Right click in your macro and type “local”, a bunch of utilities will show such as “local boolean” to create a local boolean like FlipFlop does.

Also in FlipFlop you will see there is an “Assign” node also to set that variable and its value.

Example attached.

Hope this helps.