# Trying to make a Condition?

**URL:** <https://forums.unrealengine.com/t/trying-to-make-a-condition/463323>\
**Category:** C++\
**Tags:** condition, integer, unreal-engine, question\
**Created:** [April 4, 2020, 8:03pm UTC](https://forums.unrealengine.com/t/trying-to-make-a-condition/463323 "2020-04-04T20:03:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![OMGconex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OMGconex](https://forums.unrealengine.com/u/OMGconex)\
**Post date:** [April 4, 2020, 8:03pm UTC](https://forums.unrealengine.com/t/trying-to-make-a-condition/463323/1 "2020-04-04T20:03:08Z")

</div>

hey i have something i want to figure out  
i have  
Integers representing these stats

1. Total amount
2. Amount per row
3. What index im on

so i want to make a branch with a condition that only goes true if i am on the first index of each row.  
but i cant just do one for each row because the amount of rows might change later so how would i go about doing something lie that?

---

<div class="post-metadata">

**Author:** ![OMGconex](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OMGconex](https://forums.unrealengine.com/u/OMGconex)\
**Post date:** [April 4, 2020, 8:12pm UTC](https://forums.unrealengine.com/t/trying-to-make-a-condition/463323/2 "2020-04-04T20:12:51Z")

</div>

![299118-12313.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/6/8c6d756f5441629f630dd3e1ae5d8fc04bf9ca31.png)

Made this which does the work but it seems kinda excessive
