Difference between revisions of "Command/doifdocumentargument"

From Wiki
Jump to navigation Jump to search
(Created page with "{{Reference |name={{subst:SUBPAGENAME}} |attributes= }} == Syntax == <table cellspacing="4" cellpadding="2" class="cmd"> <tr> <td colspan="2" class="cmd...")
 
(documentargument --> getdocumentargument)
Line 37: Line 37:
 
== See also ==
 
== See also ==
 
* {{cmd|doif...}}
 
* {{cmd|doif...}}
* {{cmd|documentargument}}
+
* {{cmd|getdocumentargument}}
 
* {{cmd|env}}
 
* {{cmd|env}}
  

Revision as of 12:54, 10 September 2012

\doifdocumentargument

Syntax

\doifdocumentargument{...}{...}
{...} argument name
{...} code if the argument is defined

Description

Process certain content only if a certain command-line argument was present.

Example

% test.tex
\starttext
\doifdocumentargument{Number}{\getdocumentargument{Number Yes}
\stoptext
context --Number test.tex

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: