Why isn't my product ID working with discount script?

Hi,

Some of the products that the conditional discount script I published have not been identified.

The products that did not activate discount have the same product ID, but different variant IDs.

I tried using variant IDs as identifiers for the discount code but it still doesn’t work. Please refer to the image below:

This is the script that I’m using for this promotion:
https://docs.google.com/document/d/170ucMJuwjgO4Y9H3Ifv6q3qKOKm6AkPe48WjxLhNlEc/edit?usp=sharing

I’ve been using this same script format for 9 months and never had I encountered this.

Please help… Much appreciated.

Variant IDs and Product IDs for items above.