How to break the for each loop correctly?

Hello, to break the loop like in the blueprint, the break statement should be inside the if statement.

      if (Array.Type != EItemType::E_Weapon)
      {
         ItemsIDArr.Remove(Array);
         break;
      }
3 Likes