So for example if I wanted to get 10 diamonds per every 100 coins how would I do that without having to manually type every multiple of 100. Thanks

```
If coins ~= 0 and coins % 100 == 0 then
-- give diamons
end
```

or

```
diamonds = math.floor(coins / 100) * 10
```

1 Like