Tejas
User
Oct 1, 2013, 2:47 AM
Post #1 of 11
(2249 views)

How to conditionally write 10 if statements at a time

Can't Post


if (Check_Duplicate_Sale_Revenue($min_etid,$max_etid,$count,$avg_etid)) { next ; } elsif (Check_PaymentMissing($min_etid,$max_etid,$count,$avg_etid)) { next ;} elsif (Check_Refund_PaymentMissing($min_etid,$max_etid,$count,$avg_etid)) { next ;} elsif (Check_Refund_Revunue_Missing($min_etid,$max_etid,$count,$avg_etid)) { next ;} elsif (Check_Refund_Sale_Missing($min_etid,$max_etid,$count,$avg_etid)) { next ;} elsif (Check_Sale_RevenueMissing($min_etid,$max_etid,$count,$avg_etid)) { next ;} elsif (Check_Sale_Vs_Revenue_Mismatch($min_etid,$max_etid,$count,$avg_etid)) { next ;} elsif (Refund_Payment_DoubleBooking($min_etid,$max_etid,$count,$avg_etid)) { next ;} If the first if condition is false then next if condition has to be cleed .. Is this the corect way? Succeeding if condition has to be called if preceeding condition fails, It has to go on till the if conition is true
