na_0018: Number of nested if/else and case statement

ID: Title

na_0018: Number of nested if/else and case statement

Priority

Strongly recommended

Scope

NA-MAAB

MATLAB Versions

All

Prerequisites

None

Description

The number of levels of nested if / else and case statements should be limited, typically to 3 levels.

Rationale

  • Readability

  • Code Generation

See Also

  • jr_0002: Number of nested if/else and case statement blocks

Last Changed

V3.0

Model Advisor Check

By Task > Modeling Standards for MAAB > MATLAB Functions > Check MATLAB Function block metrics

Was this topic helpful?