Skip to main content

Avoid superfluous comparison against boolean literals

ZPA rule for PL/SQL and Oracle SQL · ComparisonWithBoolean

Remove literal boolean values from comparisons to improve readability.

Examples​

Noncompliant Code Example
if var = true then ...
if var = false then ...
Compliant Solution
if var then ...
if not var then ...