bdeIsBlockParameterEnabled

Returns whether or not a parameter of a given block is enabled.

Syntax

enabled = bdeIsBlockParameterEnabled(block, parameter)

Inputs

block
The block to that the parameter is in.
Type: block
parameter
The parameter to check the whether it is enabled or not.
Type: string

Outputs

enabled
Boolean that represents whether or not the parameter is enabled. 1 for enabled and 0 for not enabled.
Type: Boolean

Examples

Check if a parameter of a block is enabled:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          enabled = bdeIsBlockParameterEnabled(block, 'gain');
        

          
            enabled = 1