I am not sure what's going wrong. I want to use if condition to compare the statuscode of webcall in vugen and handle the transaction based on that.
c_statuscode = 409 // it is the extracted value showing in logs
if (atoi(lr_eval_string("{c_statuscode}")) == 409){
lr_output_message("request already exist");
lr_end_transaction("transaction",LR_PASS);
Action();
}
else{
lr_end_transaction("transaction",LR_AUTO);
}
it's suppose to compare the status code and print output message as is in lr_output_message function, and end the transaction and again go to perform the Action() part. and if "if" condition doesn't match it should end transaction.