Set My To
Usage
Sets the selected trait of an agent to the value of the input.
Syntax
Inputs in this block:
- a type of trait from the dropdown menu
- a number or a trait block of the selected type
Example
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.