script.isComment

Syntax script.isComment ()

Params None required

Action Determines whether the selected line in the target window is a comment in a script.

Returns True if the selected line is a comment, false if it is an executable line of UserTalk code.

Examples Open the script examples.counter. Select the first line in the script. Now type and execute:
script.isComment ()


   » true

Now move the cursor down to one of the executable lines of code in the script.
script.isComment ()


   » false

See Also script.makeComment

script.unComment

Discuss