I am working with \newcommand and \ifdefined. I have an issue with the below code as it produces an error and I don't know what is wrong:
\documentclass[a4paper,11pt,english]{report}
\usepackage{longtable}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage[table,xcdraw]{xcolor}
\begin{document}
\newcommand{\FailedReq}{
Nour
}
\newcommand{\ReqOpenIssues}{}
%\newcommand{\NoOpenIssues}{}
\newcommand{\OpenIssues}[1]{\ifcsname#1OpenIssues\endcsname \Failed#1 \else \ifdefined\NoOpenIssues NA \fi \fi
}
\OpenIssues{Req}
\end{document}
Any help ?
\Failed
you have that command in the definition but have not defined it, what do you want it to do?\FailedReq
? you need \csname Failed#1\endcsname`