[NTG-context] Failing \doifemptyelse

Willi Egger context at boede.nl
Thu Jun 23 21:16:01 CEST 2022


Good evening gurus!

Why is the minimal example failing? i.e. executing always the else-branch?

\setuppapersize[A6][A6]

\setvariables
	[Test]
	[Number=]
	
	
\starttext
	Value of variable Number before test: \getvariable{Test}{Number} \crlf
	
 \doifemptyelse{\getvariable{Test}{Number}}
		{\dorecurse
		 	{5}
		 	{TEST}
		}
		{Nothing defined \par 
		 Contents of variable Number: \getvariable{Test}{Number}
		}

\stoptex


I am using ConTeXt version 2022.05.11 11:36 LMTX  fmt: 2022.6.15

Kind regards

Willi


More information about the ntg-context mailing list