I am able to access the file using
\DTLfetch
, and to place the result wherever I wish.On the one hand, were the date 2020-02-02, it would show Candlemas, but, on the other hand, were the date to be 2020-08-02, nothing would be output, which is what I want, as it is not listed as a special day, and thus, the field "special" is empty for that date.
However, though there is no error message generated, I am conscious that my FALSE clause contains "When would this line ever be used?" and it never seems to appear. I am wondering if that means that my code just happens to work, and that my logic is flawed? Do I actually need the FALSE clause?
How could I tidy it up so that it works properly, please?
\if
{\DTLfetch{litdays}{soy}{\publicationdate}{special}}>{}
When would this line ever be used?
\else
{\DTLfetch{litdays}{soy}{\publicationdate}{special}}
\fi
soy = sunday-of-year(e.g., 2019-10-13 for this Sunday coming)
I do not think that the following information is relevant, but I share it anyway.
litdays is the database stored in my yearcycles.csv