# How to make an if condition inside a for loop?

**URL:** <https://forums.unrealengine.com/t/how-to-make-an-if-condition-inside-a-for-loop/308098>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [February 25, 2015, 6:15pm UTC](https://forums.unrealengine.com/t/how-to-make-an-if-condition-inside-a-for-loop/308098 "2015-02-25T18:15:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![philUnreal\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@philUnreal\_1](https://forums.unrealengine.com/u/philUnreal_1)\
**Post date:** [February 25, 2015, 6:15pm UTC](https://forums.unrealengine.com/t/how-to-make-an-if-condition-inside-a-for-loop/308098/1 "2015-02-25T18:15:03Z")

</div>

![31144-forloop.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/8/578ca7eb23f1f3784b25ec7217ce48f6f4aa0b84.jpeg)

Hi all. I always use Unity. But now since 2 weeks i am learning Unreal (UE4) and make a project on it. I am very new in Blueprint. I am currently trying to make and if condition inside a for loop. I have my c++ conception in the attachment

![31146-cpp_question.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/1/7419b8ba8a816e1804772898595f6b24ee4073e5.jpeg)

I want to know how to do this in blueprint.

Thanks for your attention.

Greetings.

Phil

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_741503d3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_741503d3](https://forums.unrealengine.com/u/anonymous_user_741503d3)\
**Post date:** [February 25, 2015, 6:19pm UTC](https://forums.unrealengine.com/t/how-to-make-an-if-condition-inside-a-for-loop/308098/2 "2015-02-25T18:19:35Z")

</div>

Here you go:

 ![31147-condition.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/b/fdbe9cace44da163803a018ae71f1b22755635a1.png)
