Share this page

# Example: lr_eval_string

In the following example, lr_eval_string is used to check the value of a parameter.

    Action()
    {
    	lr_save_int(0, "searchCount");
    	if (atoi(lr_eval_string("{searchCount}") ) == 0) {

    		lr_output_message("Is zero, %s",  lr_eval_string("{searchCount}"));
        }

    	lr_save_int(47, "searchCount");
    	if (atoi(lr_eval_string("{searchCount}") ) != 0) {
    		lr_output_message("Not zero, %s",  lr_eval_string("{searchCount}"));
        }

    	return 0;
    }

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