Main Content

isMaskWithDialog

Class: Simulink.Mask
Namespace: Simulink

Check if block mask contains dialog controls and parameters

Since R2024b

Syntax

returnValue = maskObj.isMaskWithDialog

Description

returnValue = maskObj.isMaskWithDialog returns a logical value to indicate whether the block mask contains both dialog controls and parameters.

If the mask contains a dialog control and mask parameters then a logical value 1 is returned, 0 otherwise.

Output Arguments

expand all

True or false result, returned as a 1 if the block mask contains a dialog control with mask parameters and a logical 0 otherwise.

Data Types: logical

Examples

expand all

Load the model

model = "slexMaskingBasic.slx";
load_system(model);

Get the mask object.

maskObj = Simulink.Mask.get("slexMaskingBasic/mx + b");

Determine if the mask contains both mask dialog controls and mask parameters.

maskObj.isMaskWithDialog
ans = logical
   1

Version History

Introduced in R2024b