Why is this an issue?
Conditional expressions which are always true
or false
can lead to dead code. Such code is always buggy and should never
be used in production.
Noncompliant code example
SET FOO TO FALSE
IF FOO IS TRUE *> Noncompliant
DISPLAY "..." *> never executed
END-IF.
IF FOO IS NOT TRUE OR BAR IS TRUE *> Noncompliant; BAR is never evaluated
DISPLAY "..."
END-IF.
Resources