Discussion Commenting code out in EDDI scripts?

Any way to do that? I tried a few typical ones like "#", "REM" and "<!-- -->"

I'd like to disable a few of the scripts that you can't disable but only delete. Or is there a way to disable any scripts, these are the ones near the bottom such as "Security Presence Report"

~X
 
EDDI uses Cottle as its scripting engine. Check out the Cottle docs at https://r3c.github.io/cottle/

Looks like single line comments start with the underscore (_) and multiline are forward slash + asterisk to open (/*) and reverse to close (*/) BUT the comments must be contained within curly braces {} just like all other keywords and code.

So, if you write a comment like this:

Code:
_This is my comment

Or this:

Code:
/* This is my comment */

That won't work. You need to contain them within curly braces:

Code:
{_This is my comment}

or

Code:
{/* This is my comment */}
Hope this helps!!

As for disabling scripts, the best way I found was to delete them. It's simple to bring them back by clicking the "Reset to default" button at the bottom of the script window.
 
Last edited:
Thanks much, appreciated. Exactly what I was looking, I've not done a lot of coding and haven't seen that type of syntax before.

Also good to know I can just delete the entries I don't plan on using.

~X
 
Back
Top Bottom