if (($companyname) && ($anotherstring eq 'DOIT')) { ... }