Hello,

Wiki and a file processed on a local computer give different results -

- please compare "http://wiki.contextgarden.net/Command/doif...";

and the example attached:

----
\starttext
  \ctxlua{test = true}

  Test is \ctxlua{commands.testcase(test)}{True}{False}.

  \ctxlua{test = false}

  Test is \ctxlua{commands.testcase(test)}{True}{False}.
\stoptext
----

The result should be:

"
Test is True.
Test is False.
"

which works fine on my computer.

But wiki shows (wrongly):

"
Test is TrueFalse.
Test is TrueFalse.
"

although the same code is used in the example:

----
<context source="yes" text="Gives:">
\starttext
  \ctxlua{test = true}

  Test is \ctxlua{commands.testcase(test)}{True}{False}.

  \ctxlua{test = false}

  Test is \ctxlua{commands.testcase(test)}{True}{False}.
\stoptext
</context>
----

Any idea why both results differ?

And how to make wiki show the good result?

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.      [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

Attachment: t.log
Description: Binary data

Attachment: t.mkiv
Description: Binary data

Attachment: t.pdf
Description: Adobe PDF document

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to