Changes

Jump to navigation Jump to search
1,088 bytes added ,  15:29, 10 September 2012
Add doifdocumentargument
See [http:{{Reference|name=doif...|attributes=}} * <tt>\doifnextcharelse</tt>* <tt>\doifundefined</tt>, <tt>\doifdefined</wikitt>, etc.contextgarden* <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</tt>* <tt>\doifrightpageelse</tt> (precede by {{cmd|signalrightpage}})* {{cmd|doifdocumentargument}} == Example ==We can also write tests using Lua.net(Example by WS, 3/System_Macros/Branches_and_Decisions#2011.) <context mode="mkiv" source="yes">\starttext \ctxlua{test = true} Test is \ctxlua{commands.doifelse(test)}{True}{False}. \ctxlua{test = false}  Test is \ctxlua{commands.5Cdoifemptydoifelse(test)}{True}{False}.2C_\stoptext</context> == See also == [[System Macros/Branches and Decisions|Branches and Decisions]] == Help from ConTeXt-Mailinglist/Forum ==All issues with:{{Forum|{{SUBPAGENAME}}}} [[Category:Command/Internals|doif.5Cdoifnotempty.2C_.5Cdoifemptyelse]]

Navigation menu