Unreal Engine 5 · Blueprint → C++
For Loop with Break in Unreal Engine 5 C++
The Blueprint For Loop with Break node is a C++ for loop containing a break statement. The loop stops early as soon as the break condition becomes true.
Blueprint node & C++ equivalent

bool ExampleBreakCondition;
for (int32 i = 0; i <= 10; i++)
{
if (ExampleBreakCondition) { break; }
// Loop Body...
}What does the For Loop with Break node do?
This node behaves like a standard For Loop but exposes a Break input. Triggering Break immediately stops iteration and jumps to the Completed pin, skipping any remaining indices.
In C++ this maps directly to the break keyword, which exits the innermost loop the moment it executes.
The C++ equivalent
Inside the for (int32 i = 0; i <= 10; i++) loop, test your condition and call break to stop early: if (ExampleBreakCondition) { break; }. Code after the loop corresponds to the node's Completed output.
Place the break check at the point in the body where the early exit should occur, since break halts the loop instantly without finishing the current iteration.
Frequently asked questions
How do you break out of a for loop in Unreal C++?+
Use the break keyword. As soon as break runs, the loop exits and execution continues after it, matching the Blueprint Break input.
Does break skip the rest of the loop body?+
Yes. break immediately stops the loop, so any statements after it in the current iteration and all remaining iterations are skipped.