Skip to content, Skip to search

Changes

Script Parameters

110 bytes added, 05:39, 19 March 2018
Basic syntax: Add note about optional Type specifier with output directive
<li>Parameter declarations begin with <code>#@</code>. Each such line contains a single parameter declaration or script directive and nothing else.</li>
<li><code>#@ Type variableName</code> will declare an input of the indicated type, assigned to the specified name. (The use of a space between <code>#@</code> and <code>Type</code> is encouraged, but not required.)</li>
<li><code>#@output Type outputName</code> will declare the variable of the specified name as an output parameter with the given type. The <code>Type</code> parameter is optional, as the output will be treated as <code>Object</code> be default. (For the <code>output</code> directive and other script directives, no space is allowed between <code>#@</code> and the directive.)</li>
</ol>
Bureaucrat, emailconfirmed, incoming, administrator, uploaders
716
edits