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;
Comment Symbols describes the comment symbols.
// |
// comment |
|
/* */ |
/* comment */ |
|
//! |
//! |
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.)
|