<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% This file is embedded in datatool-user.pdf version 3.4 2025-04-03
% 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}
</pre></body></html>