# Multiples

Hi all, im just wondering how you make something trigger for every multiple of 5, this is what i got atm but how to you write multiple of 5, its baffling me lol, anyway if someone is kind enough to help heres what i got.

i have tried

``condition - the number of chipstack1 = 5.          actions - delete chipstack1 and create chipstack5 at coordinates``

the problem with this is when i put a chip on other things, once theres 5 it deletes them all i just need it to delete the ones from a specified position.

I don’t understand the problem very well, but the condition to check if a value is multiple of 5 is:

``mod(value, 5) = 0``

“mod” returns the remainder of the division “value / 5”, if “value” is multiple of 5, the remainder of the division is 0.
Note that mod(0,5) returns 0, so maybe you want to check if the value is non-zero

Ill see if it works when i get home thanks i just want it to trigger every multiple of 5 instead of variable 0 = 5
Im guessing it will be variable 0 = mod(0,5)

Calling a variable “0” doesn’t sound like a good idea, but I think the condition should be:

``mod(Variable(0), 5) is = 0``

``variable 0 = mod(0,5)``