The usage of modulo: How can I correctly implement it?

AFAIK, your loop for (i = 0; i < 1000; i += 10) { generates only whole values for the variable i.

!(i % 5) && print(name); won’t work if i is a fractional value!