1: \begin{abstract}
2: We give an algorithm that decides whether a single equation in a group that is
3: virtually a class \(2\) nilpotent group with a virtually cyclic commutator
4: subgroup, such as the Heisenberg group, admits a solution. This generalises
5: the work of Duchin, Liang and Shapiro \cite{duchin_liang_shapiro} to finite
6: extensions.
7: \end{abstract}
8: