SyntaxFix
Write A Post
Hire A Developer
Questions
If I understand correctly, you can use the module operator for this. For example, in Java (and a lot of other languages), you could do:
//j is a multiple of four if j % 4 == 0
The module operator performs division and gives you the remainder.