ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Failing \doifemptyelse
@ 2022-06-23 19:16 Willi Egger via ntg-context
  2022-06-23 19:54 ` Wolfgang Schuster via ntg-context
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Willi Egger via ntg-context @ 2022-06-23 19:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Willi Egger

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-06-24 11:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-23 19:16 Failing \doifemptyelse Willi Egger via ntg-context
2022-06-23 19:54 ` Wolfgang Schuster via ntg-context
2022-06-23 20:59 ` Hans Hagen via ntg-context
2022-06-23 21:00 ` Hans Hagen via ntg-context
2022-06-24  3:42   ` Wolfgang Schuster via ntg-context
2022-06-24 11:59     ` Willi Egger via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).