Comment-Only Scripts

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
98b427af

Comment-Only Scripts

Post by 98b427af » 05 Apr 2014 14:45

I use scripts for documentation, via /*comments*/. These "scripts" have nothing else in them but a single, usually long, comment.

To avoid a syntax error I must include one line of code. I always use this at the end:

Code: Select all

null; //syntax requirement
Because these comment scripts are not meant to be executed that code is superfluous. Technically speaking, there is nothing syntactically wrong with having only a comment, so I suggest removing the code requirement, to permit comment-only scripts.

Thanks.

cjrademaker
Posts: 7
Joined: 02 Apr 2014 06:36

Re: Comment-Only Scripts

Post by cjrademaker » 10 Apr 2014 17:27

I appreciate the tip. I have been looking for nice clean way to do this.

User avatar
bichlepa
Posts: 148
Joined: 04 Mar 2014 18:29
Location: Germany
Contact:

Re: Comment-Only Scripts

Post by bichlepa » 11 Apr 2014 16:34

I don't like the behaviour that there is an error if a script contains nothing, too. Sometimes it is useful to comment out everything from the script when debugging a flow.

Locked