希望する出力を得るためにこの条件文をどのように変更すればよいでしょうか?

希望する出力を得るためにこの条件文をどのように変更すればよいでしょうか?

以下のコードでは、次の行だけが欲しいですここにテキストが入ります...行をコメントアウトしたときに出力に残るようにするには\articlehistory{Physics}{07/06/2022}{28/06/2022}どうすればいいでしょうか?

\documentclass{article}

\newcommand{\articlehistory}[3]{%
\def\type{#1}%
\def\recieved{#2}%
\def\accepted{#3}%
}

\makeatletter
\let\type=\@empty
\let\recieved=\@empty
\let\accepted=\@empty

\def\@setarticlehistory{%
Article type: \type;
Recieved: \recieved;
Accepted: \accepted.
}
\makeatother
\articlehistory{Physics}{07/06/2022}{28/06/2022}
\begin{document}
Text goes here...

\makeatletter
\ifx\@empty\articlehistory\else\@setarticlehistory\fi
\makeatother
\end{document} 

答え1

あなたが望む

\ifx\@empty\accepted

条件付き定義を持つ3つの内部コマンドであるため、空でない固定定義を持つ
\ifx\@empty\articlehistory
ため常に偽である。\articlehistory

関連情報