alguidelines/content/NAVPatterns/3-cal-coding-guidelines/readability/unnecessary-truefalse/index.md
2021-10-30 22:09:32 +02:00

26 lines
352 B
Markdown

+++
title = "Unnecessary TRUE/FALSE"
weight = 1300
+++
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