Set My To

From StarLogo Nova Wiki
Revision as of 19:07, 14 August 2023 by Admin (talk | contribs) (Marked this version for translation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
The Set My To Block

Usage

Sets the selected trait of an agent to the value of the input.

Syntax

Inputs in this block:

  1. a type of trait from the dropdown menu
  2. a number or a trait block of the selected type

Example

Set My To example gif
Set My To example code

This is a model of bacterial growth and reproduction. Bacteria eat small spherical ‘food’ agents so they can grow. After eating a sufficient amount, the bacteria will undergo mitosis and split into two new bacterial cells. Each lineage of bacteria has its own color.