% This file is embedded in datatool-user.pdf version 3.4.5 2026-08-23
% Example 35 Order Conditionals for use with ifthen
% Label: "ex:DTLiscmp"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{datatool-base} 
\begin{document}
$1 = 1.0$? \ifthenelse{\DTLiseq{1}{1.0}}{true}{false}. 

duck = Duck? (case-sensitive) \ifthenelse{\DTLiseq{duck}{Duck}}{true}{false}. 

duck = Duck? (ignore case) \ifthenelse{\DTLisieq{duck}{Duck}}{true}{false}. 

$2 < 10$? \ifthenelse{\DTLislt{2}{10}}{true}{false}. 

a before Z? (case-sensitive) \ifthenelse{\DTLislt{a}{Z}}{true}{false}. 

a before Z? (ignore case) \ifthenelse{\DTLisilt{2}{10}}{true}{false}. 

$1.5 > 1$? \ifthenelse{\DTLisgt{1.5}{1}}{true}{false}. 

a after Z? (case-sensitive) \ifthenelse{\DTLisgt{a}{Z}}{true}{false}. 

a after Z? (ignore case) \ifthenelse{\DTLisigt{2}{10}}{true}{false}. 
\end{document}
