Skip to content
Prev 353507 / 398502 Next

result NA , but expected True or False

Dear Group,
Kindly,

I have those two lines
if(  (z_nebla==0) ||  (z_nebla_dash==0) )
           CM <- 0         else             
            
               CM <-  0.5 *(1/a)  +   0.5*(1/b)  

when running it

I got this

z_nebla==0)
logical(0)
logical(0)
[1] NA


why  (z_nebla==0) ||  (z_nebla_dash==0)
gives me NA ?

thanks in advance
Ragia