Difference between revisions of "Command/doifdocumentargument"

From Wiki
Jump to navigation Jump to search
(documentargument --> getdocumentargument)
Line 3: Line 3:
 
|attributes=
 
|attributes=
 
}}
 
}}
 +
 +
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>doifdocumentargument</syntax>
  
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==

Revision as of 16:22, 11 November 2019

\doifdocumentargument


Syntax (autogenerated)

\doifdocumentargument{...}{...}
{...}name
{...}true


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: