Difference between revisions of "Command/doifdocumentargument"
< Command
Jump to navigation
Jump to search
(documentargument --> getdocumentargument) |
m (fix code) |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
|attributes= | |attributes= | ||
}} | }} | ||
+ | |||
+ | |||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>doifdocumentargument</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
Line 27: | Line 31: | ||
== Example == | == Example == | ||
<texcode> | <texcode> | ||
− | + | \doifdocumentargument{Number}{\getdocumentargument{Number Yes}} | |
− | |||
− | \doifdocumentargument{Number}{\getdocumentargument{Number Yes} | ||
− | |||
</texcode> | </texcode> | ||
− | context --Number | + | context --Number myfile |
== See also == | == See also == | ||
* {{cmd|doif...}} | * {{cmd|doif...}} | ||
+ | * {{cmd|doifelsedocumentargument}} | ||
* {{cmd|getdocumentargument}} | * {{cmd|getdocumentargument}} | ||
* {{cmd|env}} | * {{cmd|env}} |
Latest revision as of 20:26, 19 March 2024
\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
\doifdocumentargument{Number}{\getdocumentargument{Number Yes}}
context --Number myfile
See also
Help from ConTeXt-Mailinglist/Forum
All issues with: