We need your help! 🔥
Please consider disabling your ad-blocker to support this website! 🔑
We are a free, community-supported website! 🥰
We only display small unobtrusive ads which help us stay online! 💯
Thank you in advance! ❤️
01 | Input
02 | Output
03 | Quantity
04 | Data Organization
05 | Flow

Set Principle Value

Set the principle value of an associative array. An assoc will behave like its principal value if the processing component doesn't support associative array.
By default, an assoc will take the first item as its principle value, unless the first item is a String/Text.
If unset and the first item is a String/Text, an assoc will not have a principle value. See example for more information.

Inputs

NameIDDescriptionType
AssocAAssociative arrayGoo
IndexIIndex as the new principle value. You must provide a name or an index.Integer
NameNNamed value as the new principle value. You must provide a name or an index.String

Outputs

NameIDDescriptionType
AssocAAssociative arrayGoo

Site design © Robin Rodricks.   Site co-created by Andrew Heumann.   Pancake and associated data © 2024 Keyu Gan.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service