This version of the Help is no longer updated. See JMP.com/help for the latest version.

.
Publication date: 07/30/2020

Comments

Comments are notes in the code that are ignored by the JSL processor (or parser). You include comments to describe sections of the script. Comments are also convenient for removing portions of a script temporarily. For example, you can insert comment symbols around code that might be causing an error and then rerun the script.

Type the comment symbols around code that you want to comment. The following example shows code commented with /* */ in the middle of a line. When the script is run, JMP considers both expressions to be identical.

tax /*percentage*/ = .25;
tax = .25;

Table 5.2 describes the comment symbols.

Table 5.2 Comment Symbols

Symbol

Syntax

Explanation

//

// comment

Begins a comment. The comment does not have to be at the beginning of a line, but everything up to the end of the line is a comment.

/* */

/* comment */

Begins and ends a comment. This comment can appear in the middle of a line. Script text before and after the comment is parsed normally.

//!

//!

Add //! to the first line of the script, and the script runs automatically when opened in JMP. (In other words, the script editor does not open.)

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).