Setear Mi a

From StarLogo Nova Wiki
This page is a translated version of the page Set My To and the translation is 20% complete.
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.