diff --git a/docs/en/diagnostics/DoubleNegatives.md b/docs/en/diagnostics/DoubleNegatives.md index 3a6b3059d40..65eea5b15f4 100644 --- a/docs/en/diagnostics/DoubleNegatives.md +++ b/docs/en/diagnostics/DoubleNegatives.md @@ -1,28 +1,5 @@ # Double negatives (DoubleNegatives) -## Description -Using double negatives complicates the understanding of the code and can lead to errors when instead of truth the developer "in his mind" calculated False, or vice versa. It is recommended to replace double negatives with conditions that directly express the author's intentions. - -## Examples - -### Wrong - -```bsl -If Not ValueTable.Find(ValueToSearch, "Column") <> Undefined Тогда - // Act -EndIf; -``` - -### Correct - -```bsl -If ValueTable.Find(ValueToSearch, "Column") = Undefined Тогда - // Act -EndIf; -``` - -## Sources - -* Источник: [Remove double negative](https://www.refactoring.com/catalog/removeDoubleNegative.html) +* Description