Using Comments in Code

egoproctor
23 Nov 2018, 07:06What is the convention for using comments in the scripting code,
especially for commenting out a section of troublesome code?
The Pixie
23 Nov 2018, 07:48Use // like in C, Java, etc. There is no block comment in scripts.

egoproctor
23 Nov 2018, 08:14thanks I figured,
but when I had a bug in the code, even after commenting it out, the compiler reported an error in the code.
mrangel
23 Nov 2018, 11:06If you mean the web editor, that happens.
If it spots a syntax error, it will continue to display messages telling you about the error for quite some time after you fix it.

DarkLizerd
24 Nov 2018, 03:32Sometime, you need to cut the code bit, and paste in in a text file, then put it back in when you get it fixed...
(Been there, done that...)
And sometimes, commenting out "}" converts then into a called function!!!
That's when removing the code block always works...

egoproctor
24 Nov 2018, 08:20makes building an adventure an expedition for sure. haha

egoproctor
24 Nov 2018, 08:20makes building an adventure an expedition for sure. haha