Comments

Working with calculated attributes often results in using a combination of functions, and can include many lines of text. Comments allow the author to note the intention of the elements of the calculation and future readers to understand the reason for the element. Comments are ignored by the Function Editor and are only useful for a user reviewing the value template.

Comments can be added for the current line or can encompass multiple lines as defined the table below.

Description

Syntax

Example

Comment spans multiple lines

/*

*/

prodval('NUMBER1id') /* This text is a comment and
commented text continues on each line until the concluding
comment indicator is reached.*/

Comment for the current line

//

prodval('TEXT1id') // This text is a comment 

Use Cases

For a scenario using comments, refer to Including Parent Info on Child Scenario here.

For a scenario using comments, refer to the Get Reference Source or Target Product Information on the Link section of the Reference Scenario here.