[NTG-context] Wiki - results differ?

Procházka Lukáš Ing. - Pontex s. r. o. LPr at pontex.cz
Fri May 4 11:55:13 CEST 2012


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:LPr at pontex.cz]
Pontex s. r. o.      [mailto:pontex at pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.log
Type: application/octet-stream
Size: 12406 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120504/067ecc17/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.mkiv
Type: application/octet-stream
Size: 194 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120504/067ecc17/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.pdf
Type: application/pdf
Size: 5720 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120504/067ecc17/attachment-0001.pdf>


More information about the ntg-context mailing list