Is there a way to check multiples of an integer?

As the Title says, is there a way to check a number against a multiple of an integer without having to do it manually in this way?

Yes. Use modulo (%): number % multiple == 0. It could also be done in a loop and multiply SlotsPerRole * index.

1 Like