What is the version of the following sentence with correct punctuation?

When publish is set to yes the route will never be deleted
When publish is set to yes, the route will never be deleted,