Grasshopper

algorithmic modeling for Rhino

Hi All, 

Just a stupid question. 

How do you disable a block or multiline code instead one line by line with # please?

Thanks in advance.

R.

Views: 12516

Replies to This Discussion

You can use triple quotation marks, like so:


"""

for i in range(10):

print i

"""

or triple ticks, like so:

'''
for i in range(10):

print i

'''

Note that this is technically not commenting, but multi-line strings.

cheers!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service