Sorry for the confusing title, here's what I mean: In the first passage, I place an object variable into an array, like this:
<<set $item_test to {}>>
<<set $array to []>>
<<set $array.push($item_test)>>
At this point, in the same passage, $array.includes($item_test) returns true.
Then, I link directly from this passage to a second passage. In the second passage, $array.includes($item_test) returns false. In both cases the array knows that its length is 1 and if I have it print the first item's parameters they match the original object. But if I ask it for .includes() or .count() to find that original item while it's in the second passage, it can't.
If I'm trying to do something that Sugarcube doesn't want to do, then is there another way to tell how many of an object are inside an array?