0 doesn't equal 0

I’m not 100% sure what your doing here but if your checking whether a number divided by 500 is equal to zero then that can never be true. No number divided by 500 can be 0 except for 0 (0/500), does your minimum pin of the Random Int node include 0? It’s difficult to tell as the image doesn’t show whats to the left of it.

If you could post a screenshot that shows whats to the left of random int then I could give a better answer.