set_parameter
Set the value of a NetLogo global variable, slider, or switch to control model parameters.
Instructions
Set a NetLogo global variable / slider / switch value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the global variable (e.g. 'initial-number-sheep'). Must be a valid NetLogo identifier — letters, digits, and any of ``- _ . ? !`` only. Names with whitespace or shell/NetLogo meta-characters are rejected to prevent command injection. | |
| value | Yes | The value to set. Numbers, strings, booleans accepted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |