if ($filter == "completed") { if ($count_tested_prod == $count_mrn_prod) { } else { $total_product-=1; continue; } } if ($filter == "pending") { if ($count_tested_prod == $count_mrn_prod) { $total_product-=1; continue; } }