NA-MAAB — No recommendations
JMAAB — a
Logical constants shall not be compared to each other.
Logical constants are not compared to each other.
Logical constants are compared to each other.
Sub ID a:
Readability improves with consistent use of
signal==true(boolean type constant) or
(boolean-valued signal) for logical signal condition
Prevents redundancy in the model.
Deviation from the rule can cause unexpected issues.
Model Advisor check: Check prohibited comparison operation of logical type signals (Simulink Check)
JMAAB guideline jc_0655, which is available in Control Algorithm Modeling Guidelines Using MATLAB, Simulink, and Stateflow on the MathWorks® website.