I am having confusion in if statement

I have like

```
    if(hello==0 || bye==0)
    {
    echo 'error';
    }

```

but if 

`hello==1 || bye==0` OR `hello==0 || bye==1` 

then it should `echo 'fine';`

is their any process by which i can put this type of condition in if statement ??

**EDIT** 

```
$numbers1=0;
$numbers2=0;

if(numbers1==0 || numbers2==0){
$percentage1 = ($numbers2 / ($numbers2 + $numbers1)) * 100;
$parcentage2 = ($numbers1 / ($numbers2 + $numbers1)) * 100;
}

```

This is why i can do fine clause as main statement 

```
Warning: Division by zero

```