A connective meaning 'in that way' or 'like that' — used to indicate a method, manner, or attitude (colloquial equivalent of 'that way').
そうやって毎日少しずつ勉強すれば、必ず上達するよ。
If you study a little like that every day, you'll definitely improve.
そんなに強く押さないで。そうやってやると壊れるかもしれないよ。
Don't press so hard. If you do it like that, it might break.
彼はそうやって人の気持ちを無視することがある。
He sometimes ignores people's feelings like that.
レシピを見て、そうやって野菜を切ってください。
Look at the recipe and cut the vegetables like that, please.