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