error when copying and pasting on the forum is not a LIE
I fail to see how:-
- Select all the code in the IDE
- Press the copy key combination
- Click on the code icon in the Forum's web site
- Pressing the post key combination
Can result in not only a missing comma, but all that nonsense with the "if" statement
I also notice that you have changed the code in the original post to make it look like I am the lyer. This is a blatant disregard for the forum rules, which tells you what you are permitted to do to a first post in a thread.
Read them some time How to use this forum preferably before you post again on this forum.