Sum: Difference between revisions

From StarLogo Nova Wiki
(add related blocks)
(Marked this version for translation)
 
Line 27: Line 27:
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==
==Related Blocks== <!--T:10-->


<!--T:11-->
*[[Special:MyLanguage/Difference|Difference -]]
*[[Special:MyLanguage/Difference|Difference -]]
*[[Special:MyLanguage/Product|Product *]]
*[[Special:MyLanguage/Product|Product *]]

Latest revision as of 15:52, 14 August 2023

Other languages:
The Sum Block

Usage

Returns the sum of two inputs.

Syntax

Inputs in this block:

  1. a number
  2. a number

which will then be added together.

Example

Sum example gif
Sum example code

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