Share this page

# lr.eval_int

Returns the integer value of a parameter

    int lr.eval_int ( String name );

String and Parameter Functions | Java Syntax

## Arguments

Name | Comments
--- | ---
name | The name of the parameter.

The lr.eval_int function returns the current integer value of the parameter, name. You can use this function with parameterization to return a different value for each iteration.

## Return Values

This function returns the value of the specified string or null on error.

## Parameterization

You cannot use standard parameterization for any arguments in this function.

## Examples

### Example 1 - Simple Variable Substitution

In the following example, lr.eval_int returns the value of parameter ID_num.

    // Create the parameter
    	lr.save_int(12,"ID_num");
    // Output the parameter value
    	lr.message(" Track Stock : " + lr.eval_int("<ID_num>") );

### Example 2 - Parameterization

In the following example, lr.eval_int substitutes the parameter string STID with appropriate values for each iteration.

    lr.message( "Stock Trader ID Number is " + lr.eval_int("<STID>") );

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: