Hi, Jeffin and welcome to the forum.
Like most other forums, Ignition's forum has a way to post code that preserves indents and applies syntax highlighting. Please see Wiki - how to post code on this forum and then edit (pencil icon) your post to fix it.