[condition] + 的话,[result]
如果 / 要是 + [condition] + 的话,[subject] + 就 + [result]
的话 goes at the end of a condition and marks it as "if". It belongs to speech, and can stand alone or close a clause that opens with 如果 or 要是.
The result half often has 就 before its verb, as with 如果.
It goes at the end of the "if" half, never at the start.
的话 also turns a word or two into a condition: 不然的话 "otherwise", 这样的话 "in that case", 可以的话 "if possible".