Difference between revisions of "Command/doif..."
< Command
Jump to navigation
Jump to search
m (Text replace - "ConTeXt-Forum " to "Help from ConTeXt-Forum ") |
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Forum == All issues with:") |
||
Line 20: | Line 20: | ||
== Help from ConTeXt-Forum == | == Help from ConTeXt-Forum == | ||
+ | All issues with: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
[[Category:Commands|doif...]] | [[Category:Commands|doif...]] |
Revision as of 14:44, 16 March 2012
\doif...
Block of code depending on a Lua value - example (by WS, 3/2011):
\starttext \ctxlua{test = true} Test is \ctxlua{commands.testcase(test)}{True}{False}. \ctxlua{test = false} Test is \ctxlua{commands.testcase(test)}{True}{False}. \stoptext
See also
Help from ConTeXt-Forum
All issues with: