A stupid question in if block
- by priyanka.sarkar_2
I have a very stupid issue
if (updateYN.ToUpper() != Constants.NO
|| updateYN.ToUpper() != Constants.N)
{
// execute code for any other updateYN
}
I am trying to perform a filteration that if the value of updateYN is not NO(Constants.NO) or N(Constants.N), then execute the statement.
But the problem is that , irresptive of the values , the if block is executing.
What wrong is there
Thanks