Custom Conditions when product added to cart

Hello Bricks community!

I’m trying to create a custom condition that will be triggered when a specific product is added to the WooCommerce cart. I need it to check if specific product IDs are in the cart.