Avoid creating deeply nested if-then statements

Impact area

Manageability

Severity

Medium

Affected element

Apex Class

Rule ID

SF-0007

Impact

Deeply nested if-else statements can be confusing and complicate debugging.


Remediation

Refactor the code to reduce its complexity.

Time to fix

45 min




Last modified on Oct 27, 2023