na_0018: Number of nested if/else and case statement
The number of levels of nested if / else and case statements should be limited, typically to 3 levels.
NASA Orion style guideline jr_0002: Number of nested if/else and case statement blocks
By Task > Modeling Standards for MAAB > MATLAB Functions > Check MATLAB Function metrics
For check details, see Check MATLAB Function metrics (Simulink Verification and Validation).