Sum: Difference between revisions
(updates from Blockument) |
(Marked this version for translation) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:3--> | |||
<section begin="image"/>[[File:sum.png|alt=The Sum Block|thumb]]<section end="image"/> | <section begin="image"/>[[File:sum.png|alt=The Sum Block|thumb]]<section end="image"/> | ||
==Usage== | ==Usage== <!--T:4--> | ||
<!--T:2--> | <!--T:2--> | ||
<p id="tooltip">Returns the sum of two inputs.</p> | <p id="tooltip">Returns the sum of two inputs.</p> | ||
==Syntax== | ==Syntax== <!--T:5--> | ||
<!--T:6--> | |||
Inputs in this block: | Inputs in this block: | ||
#a number | #a number | ||
Line 16: | Line 18: | ||
which will then be added together. | which will then be added together. | ||
==Example== | ==Example== <!--T:7--> | ||
<!--T:8--> | |||
[[File:sum_example.gif|alt=Sum example gif|thumb]] | [[File:sum_example.gif|alt=Sum example gif|thumb]] | ||
[[File:sum_example.png|alt=Sum example code|thumb]] | [[File:sum_example.png|alt=Sum example code|thumb]] | ||
<!--T:9--> | |||
In this model, whenever an Elephant eats a patch of Grass, its health (a trait of the breed Elephant) increases by 1. This is demonstrated visually by setting size equal to health. | In this model, whenever an Elephant eats a patch of Grass, its health (a trait of the breed Elephant) increases by 1. This is demonstrated visually by setting size equal to health. | ||
==Related Blocks== <!--T:10--> | |||
<!--T:11--> | |||
*[[Special:MyLanguage/Difference|Difference -]] | |||
*[[Special:MyLanguage/Product|Product *]] | |||
*[[Special:MyLanguage/Quotient|Quotient /]] | |||
<!--T:1--> | <!--T:1--> |
Latest revision as of 15:52, 14 August 2023
Usage
Returns the sum of two inputs.
Syntax
Inputs in this block:
- a number
- a number
which will then be added together.
Example
In this model, whenever an Elephant eats a patch of Grass, its health (a trait of the breed Elephant) increases by 1. This is demonstrated visually by setting size equal to health.