Changes

Jump to navigation Jump to search
766 bytes added ,  15:29, 10 September 2012
Add doifdocumentargument
{{Reference|name=doif...|attributes=}}
See [http:* <tt>\doifnextcharelse</tt>* <tt>\doifundefined</wikitt>, <tt>\doifdefined</tt>, etc.contextgarden.net* <tt>\doif</tt>, <tt>\doifnot</tt>, <tt>\doifelse</tt>* <tt>\doifempty</tt>, <tt>\doifnotempty</tt>, <tt>\doifemptyelse</tt>* <tt>\doifinset</tt>, <tt>\doifnotinset</tt>, <tt>\doifnotinsetelse</tt>* <tt>\doifcommon</tt>, <tt>\doifnotcommon</tt>, <tt>\doifcommonelse</tt>* <tt>\doifsamestringselse</tt>,<tt>\doifsamestring</tt>,<tt>\doifnotsamestring</tt>* <tt>\doifinstringelse</tt>,<tt>\doifincsnameelse</tt>* <tt>\doifnumberelse</tt>* <tt>\doifassignmentelse</System_Macrostt>* <tt>\doifrightpageelse</Branches_and_Decisions branches and decisions]tt> (precede by {{cmd|signalrightpage}})* {{cmd|doifdocumentargument}}
Block of code depending on a == Example ==We can also write tests using Lua value - example . (Example by WS, 3/2011.):
<texcodecontext mode="mkiv" source="yes">
\starttext
\ctxlua{test = true}
Test is \ctxlua{commands.testcasedoifelse(test)}{True}{False}.
\ctxlua{test = false}
Test is \ctxlua{commands.testcasedoifelse(test)}{True}{False}.
\stoptext
</texcodecontext>
== See also == [[System Macros/Branches and Decisions|Branches and Decisions]] == Help from ConTeXt-Mailinglist/Forum ==All issues with:{{Forum|{{SUBPAGENAME}}}} [[Category:ReferenceCommand/enInternals|doif...]]

Navigation menu