Difference between revisions of "Command/doif..."
< Command
Jump to navigation
Jump to search
m (moved Reference/en/doif... to Command/doif...: Text replace - "Reference/en/" to "Command/") |
m (Text replace - "[[Category:Commands|" to "== ConTeXt-Forum == {{Forum|{{SUBPAGENAME}}}} [[Category:Commands|") |
||
Line 18: | Line 18: | ||
[http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions branches and decisions] | [http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions branches and decisions] | ||
+ | |||
+ | == ConTeXt-Forum == | ||
+ | {{Forum|{{SUBPAGENAME}}}} | ||
[[Category:Commands|doif...]] | [[Category:Commands|doif...]] |
Revision as of 23:52, 14 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