# Is there a way to check multiples of an integer?

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-check-multiples-of-an-integer/2674000>\
**Category:** Blueprint\
**Tags:** integer, unreal-engine, Blueprint, question\
**Created:** [November 12, 2025, 12:56am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-check-multiples-of-an-integer/2674000 "2025-11-12T00:56:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![UpCastAlex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@UpCastAlex](https://forums.unrealengine.com/u/UpCastAlex)\
**Post date:** [November 12, 2025, 12:56am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-check-multiples-of-an-integer/2674000/1 "2025-11-12T00:56:32Z")

</div>

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?

 ![CheckIfIntIsOnEdgeOfInventory](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/d/3adcb1df4b4bb1583f377305d72ce1ca30e9dd5e.png)

---

<div class="post-metadata">

**Author:** ![pezzott1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pezzott1/32/1215068_2.png) [@pezzott1](https://forums.unrealengine.com/u/pezzott1)\
**Post date:** [November 12, 2025, 1:13am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-check-multiples-of-an-integer/2674000/2 "2025-11-12T01:13:16Z")

</div>

> [@UpCastAlex](#):
>
> is there a way to check a number against a multiple of an integer

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