Difference between revisions of "Command/doif..."
< Command
Jump to navigation
Jump to search
m (fixed (example needs mkiv)) |
m (Category:internals) |
||
Line 23: | Line 23: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Internals|doif...]] |
Revision as of 09:18, 22 May 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
Gives:
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: