The lists have a method for testing if a “thing” IS A list or not (the same goes for dictionaries).
The dynamic objects (Card View, Label etc.) have “Delete” methods, but so far I haven’t found a way to check if a dynamic object exists or not. Example:
I’ve created a Card View (holding other dynamic child objects)
later I’ve deleted it (and the child objects as well)
more later at some point I’d like to check if my Card View exists or not
When I try to delete an already deleted dynamic object , run-time error is thrown. When I try to compare the “thing” gotten by grabbing my deleted Card View via its ID, I get other run-time error saying that “nothing” cannot be compared (I don’t know if exists NULL comparison in this language).
Of course there is possible to add a global variable to track the status of the root object of my dynamic object tree, but maybe I’m missing a better way to do that.
I have tried to use Call Used IDs block in “IF Then” Statement and it is unsuccessfully returning my desired value corresponding to weather component exists. I have uploaded my attempts. The values return false consistently except for contains text block it returns true properly only IF the last item added to Dynamic Components ID happens to be the one I’m referring to but not if it is an component prior to the last one added <image blocks(1)>