Add comments in source code

Add comments in source code to provide information about the contents of the file.
Preface single-line comments with a double slash:
//Single-line comment
Preface multi-line comments with an asterisk and a slash:
/* Multi-line comment text spans
more than one line */
In
FactoryTalk Design Studio
code, comments:
  • Are permitted anywhere spaces are allowed, except within a string literal.
  • Are treated as white space. They have no syntactic or semantic significance within the file.
  • Only apply to the file and are not attached to the object.
  • Cannot be localized.
  • Do not represent a comment to an element or property of an element.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.