conditional form; colloquial contraction of 「そうすると」or 「そのようにすれば」(if one does it that way)
Analysis. そう (that way, so) + する (do) + ば (if/when conditional). The ば marks a hypothetical condition: 'if [one does] like that, [then consequence follows].'
Dictionary entry by Claude.
Lite mode — plain HTML for e-readers and old browsers. Full version