[NTG-context] Testing the value of a number defined with \definenumber

mf massifr at fastwebnet.it
Sat Jun 27 13:09:37 CEST 2015


I'd like to test the value of a number (\definenumber).

\starttext

\definenumber[numero][]
\setnumber[numero][42]
The value of {\tt numero} is \getnumber[numero].

\doifelse{\getnumber[numero]}{42}{
  Ok, the test worked.
}{
  Why does not it work?
}

\stoptext

ConTeXt types "Why does not it work?", because the test fails. Why?


More information about the ntg-context mailing list