function numValue = utilGetNumericDialogSettings(blk,param)
%

%   Copyright 2017-2020 The MathWorks, Inc.

blkObj = get_param(blk,'Object');

% Convert Language Dependent Strings to Numeric Values
allowedValues = blkObj.getPropAllowedValues(param);
value = get_param(blk,param);

% Check if value is 'on' or 'off' and convert to logical
if strcmpi(value,'on')
   numValue = true;
elseif strcmpi(value,'off')
   numValue = false;
else
   numValue = find(strcmpi(value,allowedValues));
end 

end
