On 11/13/2023 1:10 PM, Bruce Horrocks wrote:
The following MWE gives "false false" instead of "false true". I'm sure this
used to work (18 months or more ago!) as I found it when re-processing an old document.
because it's not empty (it's a command that you pass)
---start---
\setdataset [DS] [a=aaaa]
\setdataset [DS] [a=]
\starttext
:\datasetvariable{DS}{1}{a}: \crlf
:\datasetvariable{DS}{2}{a}: \crlf
\doifemptyelse{\datasetvariable{DS}{1}{a}}{true}{false}
\doifemptyelse{\datasetvariable{DS}{2}{a}}{true}{false}
\stoptext
---end---
ConTeXt ver: 2023.09.26 18:19 LMTX
There is a work-around using \doiftext instead as that seems to work okay with
recalled dataset values but I thought I'd raise it.
for that we have:
\doifsomethingelse
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________