% This file is embedded in datatool-user.pdf version 3.4.5 2026-08-23
% 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}
