I would like something like the following:
\documentclass{article}
\newcommand{\acell}{}
\newcommand{\bcell}
\newccomand{\zcell}[1]{#1}
\ifx\acell{A}
\ifx\bcell{A}
\zcell{yes}
\else
\zcell{no}
\fi
\else
\fi
\begin{document}
\begin{tabular}{ccc}
\acell{A} & \bcell{A} & \zcell{} \\
\acell{A} & \bcell{B} & \zcell{} \\
\end{document}
But this code does not work. It does not print "yes" and "no" where the 'zcell' macro is. Is it possible to achieve this?

\newccomandis mis-typed). Do you want to test both cells whether they areA? – Qrrbrbirlbel Jun 08 '13 at 01:00