Command/doif...

From Wiki
< Command
Revision as of 10:12, 4 May 2012 by Taco (talk | contribs) (fixed (example needs mkiv))
Jump to navigation Jump to search

\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

Branches and Decisions

Help from ConTeXt-Mailinglist/Forum

All issues with: