I want to include `addtohomescreen.php` in a page only for the following conditions:

1. `$ua !== 'sattamatka.pro'` -> True
2. `$ua !== 'sattamatka.android'` -> True
3. `stripos($ua,'android') == true)` -> True

**Note:** **For condition `1` & `2` if either one is true the other becomes false automatically.**

I am using the following logic:

```
<?php
if($ua !== 'sattamatka.pro' 
|| $ua !== 'sattamatka.android' 
&& stripos($ua,'android') == true) {
include "addtohomescreen.php";
}
?>

```

**Note:** I want all of them true. But if I use `&&` in place of `||` both of the statements - `$ua !== 'sattamatka.pro'` and `$ua !== 'sattamatka.android'` becomes false and `addtohomescreen.php` is included in both the `$ua`.

**Edit**: The possible vales of `$ua` are:

1. `sattamatka.pro`
2. `sattamatka.android`
3. `mozilla/5.0 (linux; u; android 6.0.1; en-us; redmi note 3 build/mmb29m) applewebkit/534.30 (khtml, like gecko) version/4.0 ucbrowser/11.2.5.932 u3/0.8.0 mobile safari/534.30`

**Update**: Problem was for `$ua = 'sattamatka.pro'` and `$ua = 'sattamatka.android'` the statement `if(($ua !== 'sattamatka.pro') && ($ua !== 'sattamatka.android') && (stripos($ua,'android') == true))` returned false. This has been solved by adding `()` to `($ua !== 'sattamatka.pro') || ($ua !== 'sattamatka.android')` & now the code works as expected. I don't need any more suggestions. Thank you for your time.