ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* test for (negative) number
@ 2012-08-20 16:00 Peter Rolf
  2012-08-20 18:11 ` Sietse Brouwer
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Rolf @ 2012-08-20 16:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I used '\doifnumberelse' to validate some macro parameters (angle).
Sadly it does not work with negative numbers. Is there a similar macro,
that also supports negative values?

Example:

\doifnumberelse {45}{yes}{no}% yes
\doifnumberelse{-45}{yes}{no}% no


Greetings, Peter
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2012-08-21 16:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-20 16:00 test for (negative) number Peter Rolf
2012-08-20 18:11 ` Sietse Brouwer
2012-08-21  6:32   ` Procházka Lukáš
2012-08-21  6:56     ` Wolfgang Schuster
2012-08-21  9:24       ` Peter Rolf
2012-08-21 15:13   ` Procházka Lukáš
2012-08-21 16:42     ` Hans Hagen

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).