Example: lr.eval_string

In the this example, there is a parameter, <iteration> that reports the iteration number of the test. The lr.error_message function sends a message indicating the current iteration number. The lr.error_message step includes a lr.eval_string call to convert the iteration number to a string.

 
if (status == lr.FAIL) {
    lr.error_message( "Error at iteration #" + 
        lr.eval_string( "{iteration}" ) );
    return -1;
}
return 0;