If we say we have fellowship with him while we walk in darkness, we are lying, and we do not practice the truth.
In context
4We write this so that our joy may be complete. 5This is the message we have heard from him and declare to you: God is light, and in him there is no darkness at all. 6If we say we have fellowship with him while we walk in darkness, we are lying, and we do not practice the truth. 7But if we walk in the light, as he is in the light, we have fellowship with one another, and the blood of Jesus, his Son, cleanses us from all sin. 8If we say we have no sin, we deceive ourselves, and the truth is not in us.