Difference between revisions of "Command/doifdocumentargument"
< Command
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...") |
m (fix code) |
||
(2 intermediate revisions by 2 users 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| | + | * {{cmd|doifelsedocumentargument}} |
+ | * {{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: