function retValue = isBusElem(blockH)
% returns a boolean true if the block handle of a block 'blockH' is
% a Bus element port

%   Copyright 2022 The MathWorks, Inc.

    retValue = false;
    try
        if strcmp(get_param(blockH,'IsBusElementPort'), 'on')
            retValue = true;
        end
    catch Mex %#ok<NASGU>
        % If the argument blockH is an invalid block or it does not have the parameter isBusElementPort, 
        % we return false;
    end
end