How do I add extra condition to "if" statement

Hi, I'm new here, sorry if this is not the right place to post this but my developer is in a hospital and I have things falling apart, I have this:

1.
if($order->source == 'unknown')
{
$data->CustomerRef = $extra_field_1;
}

How can I add/merge that (1) with (2):

2.
if(($order->payment_method == 'collect_on_delivery') or strpos($order->delivery_method ,'pobraniowa'))
{
$data->CustomerRef = $order->delivery_package_nr;
}else{
$data->CustomerRef = $order->order_id;
}

from PHP http://ift.tt/1RIyotO
via IFTTT
Previous
Next Post »
Thanks for your comment