Knowledge Base

Comment Block

output-onlinepngtools__231_.png  spike_robot.jpgThis block works for EV3, SPIKE™, Zappy, and Ruby! zappi1_flip.png  output-onlinepngtools__101_.png

 mceclip1.png

Comments are used to document the program and remind programmers of what tricky things they just did with the code.

Example code:

mceclip0.png  

Another way to add comments, especially for longer, more detailed ones, is to right-click a block (any block!) and select 'Add Comment'. A question-mark (?) icon will appear on the block, which can be opened to reveal a note in which you can write as long an explanation as you wish:

adding_comment.gif

Tip: you can enlarge or shrink this note as much as you want by grabbing its corner and 'dragging' it to change the note's shape and size. If the note is small, you can scroll up and down inside it. These notes can be opened and closed by clicking the (?) icon, and can be moved around, too!

note_change_size.gif

 

Was this article helpful?
0 out of 0 found this helpful

Comments

Please sign in to leave a comment.

Powered by Zendesk