If logic where either of two conditions make it true

前端 未结 2 794
渐次进展
渐次进展 2021-01-25 05:01

I am trying to delete a row if cells in column V is not equal to F or V.

This code deletes everything.

For i = RowCo         


        
2条回答
  •  萌比男神i
    2021-01-25 05:15

    Your logic seems incorrect. By changing the or to an and, you will then be evaluating the proper boolean arithmetic.

    Right now, you are checking not "v" and not "f" which is always false. No matter the input, this will always have answer be true.

提交回复
热议问题