you can write it this way
```
boolean ret = (new_service_id_name != cur_service_id_name);
```