# Unnecessary TRUE/FALSE

##### Tags:

- C/AL
- Readability

##### Categories:

- Best Practice

Do not use TRUE or FALSE keywords unnecessarily if the expression is already an logical expression.

Bad code

    IF IsPositive() = TRUE THEN

Good code

    IF IsPositive THEN

Bad code

    IF Complete <> TRUE THEN

Good code

    IF NOT Complete THEN

Last modified February 24, 2022: Added tags & categories + cleanup (5ee04366) by waldo1001