I believe I want !(a || b) && !c (if monster has race flag: invisible, or temporary effect: invisible, and player is unaware; then don't detect monster without detect invisible)
Or else (!a || b) && !c (I don't know what the effect/meaning of the "!" is)
Or else (!a || b) && !c (I don't know what the effect/meaning of the "!" is)
Comment