ACR Rules

⌘K
  1. Home
  2. Docs
  3. ACR Rules
  4. Reliability (41)
  5. Conditions should always include at least one variable

Conditions should always include at least one variable

Introduced in version 1.8 (26 March 2020)

A condition that only consists of comparing literal values always evaluate to the same result and therefore make little sense. Probably this is a copy-pasta error or a debug override that was not removed.

Non-compliant example:

if 2 < 3 then "A" else "B"

Compliant example:

if $Variable < 3 then "A" else "B"