My: Difference between revisions

From StarLogo Nova Wiki
(Created page with "<languages/> <translate> Category:Traits Category:Code Block </translate>")
 
(duplicate file already uploaded)
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
<translate>
<translate>


<!--T:4-->
<section begin="image"/>[[File:my.png|alt=The My Block|thumb]]<section end="image"/>
==Usage== <!--T:5-->
<!--T:2-->
<p id="tooltip">Returns the value of an agent's trait.</p>
==Syntax== <!--T:6-->
<!--T:7-->
Inputs in this block:
#a category of trait from the dropdown menu
==Example== <!--T:8-->
<!--T:9-->
[[File:up_example.gif|alt=My example gif|thumb]]
[[File:up_example.png|alt=My example code|thumb]]
<!--T:10-->
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.
<!--T:3-->
[[Category:Traits]]
[[Category:Traits]]
[[Category:Code Block]]
[[Category:Code Block]]


</translate>
</translate>

Latest revision as of 18:35, 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.