Main Content
Logical If
Specify logical if
condition
Description
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 specified text when it has no child components. You can specify this component
as follows:
if then
if then else
if then elseif elseif . . . else
Properties
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.
Insert Anything into Report?
Depends on specified attribute values.
Class
rptgen_lo.clo_if
See Also
For Loop
, Logical Else
, Logical Elseif
, Logical Then
, While Loop