Using Comments in Code

What is the convention for using comments in the scripting code,

especially for commenting out a section of troublesome code?


Use // like in C, Java, etc. There is no block comment in scripts.


thanks I figured,
but when I had a bug in the code, even after commenting it out, the compiler reported an error in the code.


If 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.


Sometime, 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...


makes building an adventure an expedition for sure. haha


makes building an adventure an expedition for sure. haha


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums