What is the type of this Local variable?

Ok, But you can explain why using the blueprint is more efficient in this case, I mean when I attach the hairs using blueprint, the hairs is welded with headsocket in editor and in play mode, but with C++ I don’t know why only welded when playing… but in editor not welded.
I can only think about the one thing that from where the BOOL condition comes in the AttachComponentToComponent node, I think this is responsible for this welding.

When I make it false the hairs mesh is detached from the head socket while play game and in editor both.