Difference between revisions of "Command/doif..."
< Command
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
</texcode> | </texcode> | ||
− | [[Category:doif...]] | + | [[Category:Reference/en|doif...]] |
Revision as of 08:56, 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