04-14-2023 03:53 PM - edited 04-14-2023 03:54 PM
Hello All,,
I encountered this scenario based on one of the Forum POST.
The Reference to the Value-Property Node in the first and Second Loop Should be same but Output Array Reference from first for Loop shows Same reference for each element in an array, so the output is always Last element.
Output reference should be Array of unique elements, but it is not. Any reasons?
04-14-2023 05:51 PM
My guess is that the numeric value of the array element reference is the same on every iteration of the first loop.
It's always the same reference, but it may point to different elements at different times.
04-14-2023 09:01 PM
Paul's right, the refnum returned by that function is to "THE" element of the array. There isn't a unique refnum for each element of the array. All properties of the array element apply to all fields, except for Value which is the value of the currently indexed array element. (There could be others but generally speaking the elements do not get their own properties or anything.)