Of/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<languages/>
<section begin="image"/>[[File:of.png|alt=The Of Block|thumb]]<section end="image"/>
==Usage==
<p id="tooltip">Returns the value of a trait belonging to another agent (such as collidee or my parent).</p>
==Syntax==
Inputs in this block:
#a type of trait from the drop down menu
#an agent block in the socket
==Example==
[[File:set_my_to_example.gif|alt=Of example gif|thumb]]
[[File:set_my_to_example.png|alt=Of example code|thumb]]
This is a model of bacterial growth and reproduction. Bacteria eat food in order to 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, which has been established using the trait of block combined with the [[Special:MyLanguage/My Parent|my parent]] block.


[[Category:Traits]]
[[Category:Traits]]
[[Category:Code Block]]
[[Category:Code Block]]
<p id="tooltip">Returns the value of a trait belonging to another agent (such as collidee or my parent).</p>

Latest revision as of 18:37, 16 August 2023

Other languages:
The Of Block

Usage

Returns the value of a trait belonging to another agent (such as collidee or my parent).

Syntax

Inputs in this block:

  1. a type of trait from the drop down menu
  2. an agent block in the socket

Example

Of example gif
Of example code

This is a model of bacterial growth and reproduction. Bacteria eat food in order to 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, which has been established using the trait of block combined with the my parent block.