Yes, you should avoid adding code to the end of a code chunk like that. It will also break inspection. It is best to find a way to add the necessary code below using the same IF statement.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.