correctness.logic

Incorrect boolean logic (AND/OR misuse)

Comparison chains on the same value must use the boolean operator that matches the intended logic.

#Metadata

#Why it matters

Using `&&` for mutually exclusive equality checks or `||` for inequality chains produces conditions that can never behave as intended.

#Remediation

Use `||` for equality alternatives or `&&` for inequality exclusions, depending on the intended condition.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.correctness.incorrect-boolean-logic.rule.yaml.