ReferenceScript nodesUtilities › List
Add Unique
Puts an item on the end unless it's in the list already. Result is where it went, or -1.
ƒAdd Unique
Target ListResult
New Item
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
in | what happens next | – | – |
Target Listlist | list | – | – |
New Itemitem | any | – | – |
Outputs
| Pin | Type |
|---|---|
then | what happens next |
Resultindex | int |
In a graph
◆On Scene Start
ƒAdd Unique
Target ListResult
New Item
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.