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;
}