Set My To/es: Difference between revisions

From StarLogo Nova Wiki
(Created page with "Category:Rasgos Category:Code Block")
 
(Updating to match new version of source page)
 
Line 1: Line 1:
<languages/>
<languages/>
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin="image"/>[[File:set_my_to.png|alt=The Set My To Block|thumb]]<section end="image"/>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Usage==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<p id="tooltip">Sets the selected trait of an agent to the value of the input.</p>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Syntax==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
Inputs in this block:
#a type of trait from the dropdown menu
#a number or a trait block of the selected type
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[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]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
</div>


[[Category:Rasgos]]
[[Category:Rasgos]]
[[Category:Code Block]]
[[Category:Code Block]]

Latest revision as of 20:08, 14 August 2023

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.