Open main menu

Changes

Initial commit
{{Reference
|name=datasetvariable
|attributes=
}}

== [[Help:Reference|Syntax]] ==
<table cellspacing="4" cellpadding="2" class="cmd">
<tr>
<td colspan="2" class="cmd">\datasetvariable<span class="first" >{...}</span><span class="second" >{...}</span><span class="third" >{...}</span></td>
</tr>
<tr valign="top" class="first">
<td class="cmd">{...}</td>
<td>name of data set</td>
</tr>
<tr valign="top" class="second">
<td class="cmd">{...}</td>
<td>identifier or number </td>
</tr>
<tr valign="top" class="third">
<td class="cmd">{...}</td>
<td>key </td>
</tr>
</table>


== Description ==

This command retrieves the values that have been saved with the {{cmd|setdataset}} command. The first argument is the data set name, given by the first argument of {{cmd|setdataset}}. The second argument is an integer if {{cmd|setdataset}} was used with two arguments and an identifier if {{cmd|setdataset}} was used with three arguments. The last argument is the key, which value should be retrieved.

== Usage ==

<texcode>
\datasetvariable{somedataset}{1}{foo}
</texcode>

or

<texcode>
\datasetvariable{somedataset}{alpha}{bar}
</texcode>


== See also ==
<!-- something like {{cmd|goto}} -->

More detailled explanations and examples can be found under
[[System_Macros/Key_Value_Assignments|Key-Value Assignments]] section Two-pass data.


{{cmd|definedataset}},
{{cmd|setdataset}}


== Help from ConTeXt-Mailinglist/Forum ==
All issues with:
{{Forum|{{SUBPAGENAME}}}}

[[Category:Commands|datasetvariable]]
69

edits