Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Contents

na_0028: Use of If-Then-Else Action Subsystem to Replace Multiple Switches

ID: Title

na_0028: Use of If-Then-Else Action Subsystem to Replace Multiple Switches

Priority

Recommended

Scope

NA-MAAB

MATLAB Versions

All

Description

The use of switch constructs should be limited, typically to 3 levels. Replace switch constructs that have more than 3 levels with an If-Then-Else action subsystem construct.

Incorrect

Rationale

  • Readability

See Also

bn_0003: Use of If-Then-Else Action Subsystem to Replace Multiple Switches

Last Changed

V3.0

Model Advisor Check

Not applicable

Was this topic helpful?