My/es: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
 
(Updating to match new version of source page)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
<languages/>
<div lang="en" dir="ltr" class="mw-content-ltr">
<section begin="image"/>[[File:my.png|alt=The My 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">Returns the value of an agent's trait.</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 category of trait from the dropdown menu
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
[[File:up_example.gif|alt=My example gif|thumb]]
[[File:up_example.png|alt=My example code|thumb]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
The use of the ‘my trait’ block in this example ensures that the fish do not swim below the seafloor by ensuring their z coordinate, selected from the traits drop down, is >= 0 before the fish are rendered.
</div>


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

Latest revision as of 18:36, 16 August 2023

Other languages:
The My Block

Usage

Returns the value of an agent's trait.

Syntax

Inputs in this block:

  1. a category of trait from the dropdown menu

Example

My example gif
My example code

The use of the ‘my trait’ block in this example ensures that the fish do not swim below the seafloor by ensuring their z coordinate, selected from the traits drop down, is >= 0 before the fish are rendered.