Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Remove a block of code by comment


  • Please log in to reply
1 reply to this topic
Atom
  • Members
  • 38 posts
  • Last active: Nov 04 2014 09:09 PM
  • Joined: 04 Oct 2013

I wish to deactivate a number of consecutive lines of code without having to type a semicolon in front of each line. The help refers to a comment block, which I assumed would be something like this:

 

;{

some lines of code

}

 

That does not seem to work, so how to do it?

 

Nevermind, I found it.

 

/*

some lines of code

*/



JadeDragon
  • Members
  • 935 posts
  • Last active: Jun 07 2014 07:40 AM
  • Joined: 18 Jan 2013

use /* at the beginning of the block you want to comment out and */ at the end


Never assume evil intent when simple ignorance will suffice. Ignorance is an eventually curable condition with the right education. Evil intent, however, is another matter entirely. Scripts are much like children. Simple to conceive. Difficult, expensive, and time-consuming to raise. Often do the opposite of what you expect them to. Require frequent  "correction". And once they leave home you can't control them anymore. But you love them anyway.