Parameter/es: Difference between revisions
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
<section begin="image"/>[[File:parameter.png|alt=The Parameter Block|thumb]]<section end="image"/> | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Usage== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||
<p id="tooltip">Returns the value of a selected parameter that has been added in the procedure definition.</p> | <p id="tooltip">Returns the value of a selected parameter that has been added in the procedure definition.</p> | ||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Syntax== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
Inputs in this block: | |||
#a created parameter from the dropdown menu | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
==Example== | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
[[File:parameter_example.gif|alt=Parameter example gif|thumb]] | |||
[[File:parameter_example.png|alt=Parameter example code|thumb]] | |||
</div> | |||
<div lang="en" dir="ltr" class="mw-content-ltr"> | |||
In this model, a [[Special:MyLanguage/Procedure|procedure]] called “draw square” was created to draw squares in spaceland, with a parameter that defined the side length of the square. Parameters are useful here because the side lengths are not constant. A parameter is a condition which has to be specified in order for a [[Special:MyLanguage/Procedure|procedure]] to execute the desired function. | |||
</div> | </div> | ||
[[Category:Procedimientos]] | [[Category:Procedimientos]] | ||
[[Category:Code Block]] | [[Category:Code Block]] |
Latest revision as of 19:24, 14 August 2023
Usage
Returns the value of a selected parameter that has been added in the procedure definition.
Syntax
Inputs in this block:
- a created parameter from the dropdown menu
Example
In this model, a procedure called “draw square” was created to draw squares in spaceland, with a parameter that defined the side length of the square. Parameters are useful here because the side lengths are not constant. A parameter is a condition which has to be specified in order for a procedure to execute the desired function.