Share this page

# lr.eval_string

Returns the string argument after evaluating embedded parameters.

    String lr.eval_string( String instring );

String and Parameter Functions | Java Syntax

## Arguments

Name | Comments
--- | ---
instring | The string to evaluate.

The lr.eval_string 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

This function returns the value of the specified string, provided that the parameter was previously captured in the returning payload. It returns NULL upon failure.

## Parameterization

All arguments can be parameterized using standard parameterization.

## Examples

### Example 1 - Simple Parameter Substitution

    lr.message(" Track Stock : " + lr.eval_string("<STOCK>") );

    orStockServer1.getStockValue( lr.eval_string("<STOCK>") );

### Example 2 - Multiple Parameter Substitution

    try {
    lr.save_string("Wickham", "duty_officer");
    lr.save_string( "swing", "shiftName" );
    lr.output_message(lr.eval_string("The duty_officer for the <shiftName> shift is <duty_officer>."));
    }
    catch (Exception e) { }

    Example: Output:
    The duty_officer for the swing shift is Wickham.

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: