# BP exposed c++ exec multiple times activated

**URL:** <https://forums.unrealengine.com/t/bp-exposed-c-exec-multiple-times-activated/451956>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 9, 2019, 11:47am UTC](https://forums.unrealengine.com/t/bp-exposed-c-exec-multiple-times-activated/451956 "2019-07-09T11:47:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![R0tn3k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@R0tn3k](https://forums.unrealengine.com/u/R0tn3k)\
**Post date:** [July 9, 2019, 11:47am UTC](https://forums.unrealengine.com/t/bp-exposed-c-exec-multiple-times-activated/451956/1 "2019-07-09T11:47:46Z")

</div>

Is it possible to have an execoutput on a BP-exposed C++ function that fires multiple times?  
What I try to do is the following:

```
void Example(const int& i, const int& j, int& output, EMyEnum& Branches)
{
	for ( int x = i; x < j; x++)
	{
		output = x;
		Branches = EMyEnum::UpperExec;
	}
	Branches = EMyEnum::LowerExec;
}

```

So now the Upper exposed Exec fires every forloop and I can read the “output” Pin to do something with it every time and when it’s finished it I have the lower exec as finished?  
The alternative would be to put the stuff from the loop in an array of a struct (it’s more than just a simple int unfortunately) that can hold all the information from within the forloop, but that’s not doable (for me) because when I make a struct containing an array or a struct with an aray in it (array in array) I can’t expose that to BP, because it’s allegedly not supported by BP. Though making an array in array struct in BP works without problems.
