Can anyone help me figure out what the ってきて in this sentence “友だちが病気だったら、薬を買ってきてあげます” mean, after the kanji for “buy”? I know あげます is used when one does something for someone else, but i’m not sure what that part in the middle is there for.
“I’ll buy medicine (and bring it to my friend/come back to my friend and give it to them).”
The parenthetical would be left out in English, but is natural to verbalize in Japanese. “I’ll go and buy medicine for them” would probably be the most natural equivalent.