Difference between revisions of "Command/doif..."

From Wiki
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 ==
  
[http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions branches and decisions]
+
[[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

Branches and Decisions

Help from ConTeXt-Mailinglist/Forum

All issues with: