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 a specified string 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

Was this topic helpful?