\documentclass{article}

\usepackage{datatool}

\begin{document}

\DTLnewdb{db}

\DTLifhaskey{db}{key}
  {True branch. \par With extra paragraph.}
  {False branch.\par With extra paragraph.}

\end{document}