% This file is embedded in datatool-user.pdf version 3.4.2 2025-11-06
% Example 18 Test for Data Type
% Label: "ex:ifcasedata"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{datatool-base} 
\begin{document}
1,234: \DTLifcasedatatype{1,234}{string}{int}{real}{currency}. 

1,234.0: \DTLifcasedatatype{1,234.0}{string}{int}{real}{currency}. 

\$1,234: \DTLifcasedatatype{\$1,234}{string}{int}{real}{currency}. 

1,2,3,4: \DTLifcasedatatype{1,2,3,4}{string}{int}{real}{currency}. 

Empty: \DTLifcasedatatype{}{string}{int}{real}{currency}. 
\end{document}
