ACR Rules

⌘K
  1. Home
  2. Docs
  3. ACR Rules
  4. Maintainability (28)
  5. Expressions should be simple

Expressions should be simple

Using many if statements in a microflow expressions can make it hard to complex. Complex expressions are difficult to understand and maintain. It is preferred to model the conditions a microflow in a visual way.

Configuration

It is possible to disable this rule specifically for

  • Create/Change variable
  • Create/Change object
  • Exclusive split

Noncompliant example:

if $Var < 5 then if $Var != 0 then empty else if $Str = 'foo'
then 'bar' else empty else 'buz'

Compliant example: