A connective phrase used to indicate the result or what happens next based on the preceding statement — 'if/when that happens' or 'then'.
雨が降りそうだ。そうすると、試合は中止になるだろう。
It looks like it's going to rain. If so, the match will probably be canceled.
パスワードを入れ間違えた。そうするとログインできない。
I entered the wrong password. In that case, I can't log in.
まず白い紙に線を引いてください。そうすると字がまっすぐ書けます。
First draw lines on a blank sheet. That way you'll be able to write straight.