Using IF in PHP

Hello,

I had a question about using if twice-


else if ($item_name == "testing" && $payment_amount == "$1.00"){


Is this correct?

Thanks,

Peter