Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Quick Question for sheet/scripts

1626521152
Darren H.
Pro
Sheet Author
I'm just organising my code.  I know in HTML you can use  <!-- Start of General Information --> so that the HTML doesn't recognise it, but in the scriptworkers should I use that or the    //text  .  I'm still new to sheet/scripts so just want to make sure.
1626534601
Kraynic
Pro
Sheet Author
<!-- Ignored HTML stuff here --> // Ignored line of stuff in the sheetworker section. No termination needed. /* Ignored CSS stuff */
1626535338
Darren H.
Pro
Sheet Author
Thanks!
1626535363
GiGs
Pro
Sheet Author
API Scripter
To add to Kraynic's post, the /* */ method can be used in script blocks jus like <!-- --> in HTML. That is, you can split it across lines lile code here /* some text some more text */ code here The // method only works until a line break, so you can do // this is a comment this is code or this is code // this is a comment this is more code