If any resulting corner is not taken it will not count for betting purposes

What is the correctly punctuated version of this sentence?
If any resulting corner is not taken, it will not count for betting purposes.