JavaScript Functions > Alphabetical Listing of Utility Functions (lr) > lr.evalString

lr.evalString

Returns the string argument after evaluating embedded parameters.

Example String and Parameter Functions

Syntax

lr.evalString( instring );
		

Arguments

Argument Comments
instring The string to evaluate.

The lr.evalString function returns the input string after evaluating any embedded parameters. If the string argument contains only a parameter, the function returns the current value of the parameter.

Embedded parameters must be in brackets.

Return Values

Returns the value of the specified string. On error, returns null.

Parameterization

All arguments can be parameterized using standard parameterization.

Example

  lr.outputMessage("value : " + lr.evalString("The row count is: {row_cnt}"));