Difference between revisions of "Command/doif..."
< Command
Jump to navigation
Jump to search
m (moved \doif... to /References/en/doif...: the commands are below /Reference/en) |
m (moved /References/en/doif... to Reference/en/doif...: wrong page) |
Revision as of 08:31, 1 April 2011
\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