Reorganizing
This commit is contained in:
parent
a4f6467d78
commit
f4886ee235
326 changed files with 4 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
|||
+++
|
||||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue