# For each loop the option does not appear in blueprint

**URL:** <https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144>\
**Category:** Blueprint\
**Tags:** UE4-24, foreachloop, unreal-engine, FeatureRequest, Blueprint, question\
**Created:** [November 20, 2021, 9:14pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144 "2021-11-20T21:14:32Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![FerminWeftARG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FerminWeftARG](https://forums.unrealengine.com/u/FerminWeftARG)\
**Post date:** [November 20, 2021, 9:14pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/1 "2021-11-20T21:14:32Z")

</div>

![352607-sin-titulo.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/2/4230b76a3258ff8e6dcaecc73ac39b00c958331e.png)

s

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [November 20, 2021, 10:02pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/2 "2021-11-20T22:02:22Z")

</div>

What if you uncheck Context Sensitive? What if you hold down ‘F’ and left click?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 21, 2021, 8:49am UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/3 "2021-11-21T08:49:04Z")

</div>

Pull the results pin, and search for ‘for’.

---

<div class="post-metadata">

**Author:** ![FerminWeftARG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FerminWeftARG](https://forums.unrealengine.com/u/FerminWeftARG)\
**Post date:** [November 21, 2021, 2:14pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/4 "2021-11-21T14:14:41Z")

</div>

nothing happens, the same when unchecking “context sensitive”

---

<div class="post-metadata">

**Author:** ![FerminWeftARG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FerminWeftARG](https://forums.unrealengine.com/u/FerminWeftARG)\
**Post date:** [November 21, 2021, 2:16pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/5 "2021-11-21T14:16:47Z")

</div>

![352665-sin-titulo.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/8/9785b73d8f4cfd4ea32dea3d77e2efe207fbc869.png)

nothing happens

---

<div class="post-metadata">

**Author:** ![Jon8857](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jon8857](https://forums.unrealengine.com/u/Jon8857)\
**Post date:** [November 21, 2021, 2:19pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/6 "2021-11-21T14:19:32Z")

</div>

Usually you drag off from the array you want to iterate (the Results in this case), and that will allow you to add the for-each node. Right clicking an empty space on the blueprint and trying to find it won’t work.

---

<div class="post-metadata">

**Author:** ![FerminWeftARG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FerminWeftARG](https://forums.unrealengine.com/u/FerminWeftARG)\
**Post date:** [November 21, 2021, 2:20pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/7 "2021-11-21T14:20:41Z")

</div>

![352666-sin-titulo.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/e/c/eec7f5c414fb0f99058e020b27185c31ff6aaba2.png)

---

<div class="post-metadata">

**Author:** ![Tuerer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tuerer/32/1008648_2.png) [@Tuerer](https://forums.unrealengine.com/u/Tuerer)\
**Post date:** [November 21, 2021, 2:36pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/8 "2021-11-21T14:36:21Z")

</div>

Okay, does it not appear in all types of blueprints, or just widget blueprints?

What about other standard macros, like For Loop, or Create And Assign MID?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 21, 2021, 3:27pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/9 "2021-11-21T15:27:54Z")

</div>

You’re in a particular kind of blueprint. It’s a widget, I get that, but what is the parent?

I’m assuming it’s not ‘User Widget’.

---

<div class="post-metadata">

**Author:** ![FerminWeftARG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FerminWeftARG](https://forums.unrealengine.com/u/FerminWeftARG)\
**Post date:** [November 22, 2021, 5:21pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/10 "2021-11-22T17:21:58Z")

</div>

> clockworkocean

If it is a parent widget

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [November 22, 2021, 5:38pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/11 "2021-11-22T17:38:23Z")

</div>

What does it say here?

 ![352833-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/7/2/d72fbc01e595b17e830035272fa0ab050504d418.png)

---

<div class="post-metadata">

**Author:** ![Avelworldcreator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Avelworldcreator](https://forums.unrealengine.com/u/Avelworldcreator)\
**Post date:** [May 8, 2022, 2:56am UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/12 "2022-05-08T02:56:21Z")

</div>

I came here trying to figure out this situation and I can verify that the various “For” macro options are NOT appearing in any context on a User Widget Event Graph or within a macro.  
I do not have a solution and I’m not sure where to look not. This is a serious problem as the current documetation for UE 5 under the category “Flow Control” clearly indicates the variations SHOULD exist ([Flow Control in Unreal Engine | Unreal Engine Documentation](https://docs.unrealengine.com/5.0/en-US/flow-control-in-unreal-engine/))

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [May 8, 2022, 7:55am UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/13 "2022-05-08T07:55:10Z")

</div>

Same answer 🙂

For loops work in widgets.

What kind of blueprint are you in?

---

<div class="post-metadata">

**Author:** ![Avelworldcreator](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Avelworldcreator](https://forums.unrealengine.com/u/Avelworldcreator)\
**Post date:** [May 8, 2022, 11:40pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/14 "2022-05-08T23:40:41Z")

</div>

Widget blueprint naturally. They will appear in the context menu of level blueprints, just not widget blueprints for me. I can just create a node in a level blueprint and cut/copy and paste to the target blueprint as a workaround. It seems for some reason access to the engine standard macro library isn’t enabled for me. I wonder if there is a toggle or something for that. I was working on a Blueprint-Only project when I ran into this. I’ve filed a formal bug report with Epic on the matter.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a231870a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a231870a](https://forums.unrealengine.com/u/anonymous_user_a231870a)\
**Post date:** [June 26, 2022, 5:36am UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/15 "2022-06-26T05:36:02Z")

</div>

This Does Happned to me just recently.  
Here is the Quick Solution.  
1.Make a new variable of integer type, and make it an array.  
2. drag it to event graph, and for that variable type in for each . it will come.  
3. now you can delete your variable and for each will come up .

---

<div class="post-metadata">

**Author:** ![BDC\_Patrick](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bdc_patrick/32/1104221_2.png) [@BDC\_Patrick](https://forums.unrealengine.com/u/BDC_Patrick)\
**Post date:** [June 26, 2022, 10:50am UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/16 "2022-06-26T10:50:01Z")

</div>

Another faster way to just add a Foreach Loop to your graph, without typing or clicking through Context Browser or Variable creating/deleting.

Simply hold the F-Key on your keyboard and leftclick anywhere in your graph… This is the shortcut to create Foreach loops…

Same goes for B+Leftclick to create a Branch Node…

---

<div class="post-metadata">

**Author:** ![xBluRR](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xBluRR](https://forums.unrealengine.com/u/xBluRR)\
**Post date:** [September 2, 2022, 3:06pm UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/17 "2022-09-02T15:06:53Z")

</div>

Old topic but if anyone else has this issue

Copy and paste a for each loop from a different BP into the one it is not appearing in the options for. Just had the bug myself

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [October 20, 2022, 9:29am UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/18 "2022-10-20T09:29:15Z")

</div>

Anyone got any ideas on this? Ive just got this bug, they arent showing in any bps regardless of parent.

I cant get them to show up in any parent.  
Holding F doesnt work on any blueprint.

Workload has come to a screetching halt.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [October 20, 2022, 9:33am UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/19 "2022-10-20T09:33:46Z")

</div>

Add a foreach in a blueprint where it doesn work, and copy paste it into the one that doesn’t. From the on it’s ok.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [October 20, 2022, 9:38am UTC](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144/20 "2022-10-20T09:38:32Z")

</div>

Ah I couldnt get them to load up in any of the current projects blueprints.

So Opened up 2 projects at the same time, opened up an old project that I knew defo had them and copy and pasted them over from there.

What a wierd bug. They load now normally now. Thats so odd.

Thanks! I can proceeeeed. 😃

[Next page](https://forums.unrealengine.com/t/for-each-loop-the-option-does-not-appear-in-blueprint/491144.md?page=2)
