Set My To: Difference between revisions
(updates from Blockument) |
(Marked this version for translation) |
||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:2--> | |||
<section begin="image"/>[[File:set_my_to.png|alt=The Set My To Block|thumb]]<section end="image"/> | <section begin="image"/>[[File:set_my_to.png|alt=The Set My To Block|thumb]]<section end="image"/> | ||
==Usage== | ==Usage== <!--T:3--> | ||
<!--T:4--> | |||
<p id="tooltip">Sets the selected trait of an agent to the value of the input.</p> | <p id="tooltip">Sets the selected trait of an agent to the value of the input.</p> | ||
==Syntax== | ==Syntax== <!--T:5--> | ||
<!--T:6--> | |||
Inputs in this block: | Inputs in this block: | ||
#a type of trait from the dropdown menu | #a type of trait from the dropdown menu | ||
#a number or a trait block of the selected type | #a number or a trait block of the selected type | ||
==Example== | ==Example== <!--T:7--> | ||
<!--T:8--> | |||
[[File:set_my_to_example.gif|alt=Set My To example gif|thumb]] | [[File:set_my_to_example.gif|alt=Set My To example gif|thumb]] | ||
[[File:set_my_to_example.png|alt=Set My To example code|thumb]] | [[File:set_my_to_example.png|alt=Set My To example code|thumb]] | ||
<!--T:9--> | |||
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. | 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. | ||
Latest revision as of 19:07, 14 August 2023
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.