PHP:选择所有行但只有一行?

I got some trouble with some part of PHP code. It's part of a CMS' module (Hikashop/Joomla).

Here are the lines:

    echo $this->payment->display('new_payment_method',
                                 $row->order_payment_method,
                                 $row->order_payment_id,false);
} else {
    $text = JText::sprintf('PAY_WITH_X',$this->payment->
    getName($row->order_payment_method,$row->order_payment_id));

for the part $row->order_payment_id I would like to have all rows but one. Is there a way to make it simple ???

Without testing the code (never played with Joomla), but the basic idea would be:

if( $row->order_payment_id != "unwanted_value_here" )
{
    // do stuff here
}

That would be the logical approach.