Skip to main content

Set Array Item Reference

set array item reference

Use the Set Array Item Reference node to set a specific item in an array by the index. This will replace the original reference of the array’s item.

Input​

NameData TypeDescription
EnterExecExecute this node
Number ArrayNumber ArrayThe input array to get the item from
IndexNumberThe index of the item to set, starting from 0
ValueNumberThe new set value to the target item

Output​

NameData TypeDescription
NextExecExecute the next node
Number ArrayNumber ArrayThe updated reference array with the updated item
Copyright © 2026 TikTok. All rights reserved.
About TikTokHelp CenterCareersContactLegalTerms of ServicePrivacy PolicyCookies