Difference between revisions of "Command/doif..."
< Command
Jump to navigation
Jump to search
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==") |
m (internal link instead of external one) |
||
Line 17: | Line 17: | ||
== See also == | == See also == | ||
− | [ | + | [[System Macros/Branches and Decisions|Branches and Decisions]] |
== Help from ConTeXt-Mailinglist/Forum == | == Help from ConTeXt-Mailinglist/Forum == |
Revision as of 22:50, 20 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
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: