Difference: Difference between revisions
(updates from Blockument) |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:3--> | |||
<section begin="image"/>[[File:difference.png|alt=The Difference Block|thumb]]<section end="image"/> | <section begin="image"/>[[File:difference.png|alt=The Difference Block|thumb]]<section end="image"/> | ||
==Usage== | ==Usage== <!--T:4--> | ||
<!--T:2--> | <!--T:2--> | ||
<p id="tooltip">Returns the difference of two inputs.</p> | <p id="tooltip">Returns the difference 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: | ||
the latter of which will be subtracted from the former. | the latter of which will be subtracted from the former. | ||
==Example== | ==Example== <!--T:7--> | ||
<!--T:8--> | |||
[[File:difference_example.gif|alt=Difference example gif|thumb]] | [[File:difference_example.gif|alt=Difference example gif|thumb]] | ||
[[File:difference_example.png|alt=Difference example code|thumb]] | [[File:difference_example.png|alt=Difference example code|thumb]] | ||
<!--T:9--> | |||
This is a model of elephant health given factors that nourish the elephant (grass) and factors that harm the elephant (poachers). When an elephant’s health falls to zero, it is no longer visible. This demonstrates the negative impact of poachers on elephant populations. | This is a model of elephant health given factors that nourish the elephant (grass) and factors that harm the elephant (poachers). When an elephant’s health falls to zero, it is no longer visible. This demonstrates the negative impact of poachers on elephant populations. | ||
==Related Blocks== | ==Related Blocks== <!--T:10--> | ||
<!--T:11--> | |||
*[[Special:MyLanguage/Sum|Sum +]] | *[[Special:MyLanguage/Sum|Sum +]] | ||
*[[Special:MyLanguage/Product|Product *]] | *[[Special:MyLanguage/Product|Product *]] |
Latest revision as of 15:55, 14 August 2023
Usage
Returns the difference of two inputs.
Syntax
Inputs in this block:
- a number
- a number
the latter of which will be subtracted from the former.
Example
This is a model of elephant health given factors that nourish the elephant (grass) and factors that harm the elephant (poachers). When an elephant’s health falls to zero, it is no longer visible. This demonstrates the negative impact of poachers on elephant populations.