Using Comments in AMPscript

As with any other programming language, it's a good idea to include comments in your AMPscript code. By including comments, you can improve the readability of your code, and make it easier for other users to maintain in the future.

You can add comments to AMPscript code blocks or to code blocks that use tag-based syntax. You can’t add comments to inline AMPscript.

To add a comment to your AMPscript code, start the comment with the /* delimiter and end it with the */ delimiter. You can create single-line comments, multi-line comments, or include comments inline with code. This example includes a comment block that explains the code that follows it.