In the package created by the following source, how can one change the value of \optB to true if \optA is true — so that the message written to the log would become >>> optB is true even though the option \optB=false had been passed to the package, as shown (but optA=true had been passed, as shown).
\RequirePackage{filecontents}
\begin{filecontents}{mypkg.sty}
\RequirePackage{kvoptions}
\SetupKeyvalOptions{family=MY,prefix=MY@}
\DeclareBoolOption{optA}
\DeclareBoolOption{optB}
\ProcessKeyvalOptions*
% what code here to switch value of optB *if* optA is true?
\ifMY@optB \typeout{>>> optB is true} \else \typeout{>>> optB is false}\fi
\end{filecontents}
%
\documentclass{article}
\usepackage[optA=true,optB=false]{mypkg}
\begin{document}
Hello.
\end{document}
kvoptionsdocumentation (in section 2.2.2, where it says, for a boolean optionverbose, that the corresponding switch is initialized as\foobar@verbosefalse; and the "Summary of internal macros" section 2.4, where it lists\if<prefix><key>trueand\if<prefix><key>falseto enable & disable the switch, respectively. – murray Jul 15 '19 at 13:09