Logical
IF that returns TRUE or FALSE
IF x THEN TRUE ELSE FALSE adds nothing, because the condition already is the boolean: write x on its own.
What MaxCheck detects
IF x THEN TRUE ELSE FALSE, or IF x THEN FALSE ELSE TRUE.
Why it hurts
The IF adds nothing: the condition already is the boolean. It costs a calculation step and reads worse.
Example
Taken from the rule's own test cases: formulas it must flag, and formulas it must not.
WarningFlags this(plain)
IF Revenue > 0 THEN TRUE ELSE FALSE
- Format: Boolean
Fine (other branch values)
IF A THEN B ELSE FALSE
- Format: Boolean
How to fix
Write the condition on its own: x, or NOT x for the inverse.
- Severity
- WarningCounts toward the area score.
- Area
- Logical
- Runs in
- Basic and full check
- Rule ID
- L_TTEF
- Version
- Rule 1.0.0, rule set 1.4.0
Does your model do this?
Upload the line-items blueprint. This rule runs in the basic check, in your browser, with no email.