My

From StarLogo Nova Wiki
Revision as of 19:30, 14 August 2023 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
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

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.