Quote:
IndexSearchCOB = 0 && IndexSearchOH > 0
You need a second
=
here:
IndexSearchCOB == 0 && IndexSearchOH > 0
NB: Your statement can be dramatically simplified without changing the meaning:
if (IndexSearchCOB >= 0 && IndexSearchOH >= 0 && IndexSearchPCSA > 0)