function setCheckBox(~, value, prop, hCLI)
%SETCHECKBOX update the corresponding CLI when (un)check the CheckBox

%   Copyright 2023 The MathWorks, Inc.

% This method is the temporary solution for MCOS CLI class mismatch
% The mismatch is cause by the conversion from UDD type "on/off" to
% MCOS type "string" for specific properties in hdlcoderprops.CLI class.

if value
    on_off = 'on';
else
    on_off = 'off';
end

set(hCLI, prop, on_off);

% [EOF]