Specify logical if condition
This component acts as a logical if; it can have the Logical Then, Logical Elseif, or Logical Else components as children components. This component executes its child components when the specified workspace expression is true. It displays a specified string when it has no child components. You can specify this component as follows:
if then else
if then elseif elseif . . . else
Test expression: Specifies a MATLAB® expression to evaluate.
If component has no children, insert text: Inserts specified text into the report when the Logical If component has no children.