NA-MAAB — No recommendations
JMAAB — a
For the If
if expression and
elseif expression shall be used
only to define input signals.
if expression only defines the
if expression defines a
Sub ID a:
Visual comprehension of control conditions is easier when logical operations are described outside of the If block.
Describing logical operations outside of the If block allows verification to focus on the logical operation.
Model Advisor check: Check logical expressions in If blocks (Simulink Check)
JMAAB guideline na_0003, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.