Using a Math Counter to trigger an output in blueprints?

Let me explain; I’m a longtime user of the Hammer Editor for Valve’s source engine, in Hammer’s logic entities theres something called a Math_Counter, you can have it execute on “Reached Max” for example you set the maximum to 2, then on two DIFFERENT instances or inputs (for example OnKeyPress) they output an addition of 1 into the math counter, meaning that when both inputs have added 1 to it, it executes whatever’s connected to it.

SO based on that, I was wondering if there’s an equivalent or what the closest thing to this is in UE5 blueprints.
PS: let me know if I need to clarify anything about this question, i understand it’s an odd one lol, but I keep wanting to use this method while scripting and it’s driving me crazy that I haven’t found an equivalent yet

I might be missing the point but this sounds like the logic AND.

This will execute providing all conditions are met. But somehow I feel there’s more to what you need.


For controlling more complex states, there are:

I’ll try that, thanks! I don’t think it’s 1:1 but that’s essentially what I was wanting to use it for, hopefully that will work