How to have player win Game when goal score is reached?

The whole point is the player collects shopping carts and drops them in the goal which once collided is supposed to count how many carts you have collected.

Now I want in the level blueprint to see if the carts collected equals how many you need to win and if so you win. Am I not casting correctly? How to I have the end in this case end/win?


Why not put the test and quit in the goal BP? I think that would work.

I appreciate the thought and tried that using a custom event. But the game continues to run it still doesn’t quit even though it’s counting the carts.