diff --git a/lib/src/doc/check.rs b/lib/src/doc/check.rs index 5cd96684..16d0b633 100644 --- a/lib/src/doc/check.rs +++ b/lib/src/doc/check.rs @@ -15,8 +15,8 @@ impl<'a> Document<'a> { ) -> Result<(), Error> { // Check where condition if let Some(cond) = stm.conds() { - if cond.expr.compute(ctx, opt, txn, Some(&self.current)).await?.is_truthy() { // Check if the expression is truthy + if !cond.expr.compute(ctx, opt, txn, Some(&self.current)).await?.is_truthy() { // Ignore this document return Err(Error::Ignore); }