if (Query.FieldByName('CONDICION').AsString = 'SI') and (not Highlight) then Background := clRed else Background := clBlue;