% This file is embedded in datatool-user.pdf version 3.4.1 2025-04-25
% Example 23 String Between Tests
% Label: "ex:strcmp"
% arara: pdflatex
% arara: pdfcrop
\documentclass[12pt]{article}
\pagestyle{empty}
\usepackage{datatool-base} 
\begin{document}
`duck' lies between `Duck' and `Duckling' (exclusive, case)?
\DTLifstringopenbetween{duck}{Duck}{Duckling}{true}{false}. 

`duck' lies between `Duck' and `Duckling' (exclusive, no case)?
\DTLifstringopenbetween*{duck}{Duck}{Duckling}{true}{false}. 

`duck' lies between `Duck' and `Duckling' (inclusive, case)?
\DTLifstringclosedbetween{duck}{Duck}{Duckling}{true}{false}. 

`duck' lies between `Duck' and `Duckling' (inclusive, no case)?
\DTLifstringclosedbetween*{duck}{Duck}{Duckling}{true}{false}. 
\end{document}
