Python code acting different inside Cluster

I want to reused old code sample by @AndersDeleuran that simple output true/false if and when input value has changed. But for some reason the boolean output doesn’t get passed correctly. In the attachment you can see the difference in behaviour when placed inside or outside the cluster the panel. Any suggestions how to fix this?
GHPython_PersistentLastCurrentValueCheck.gh (9.4 KB)

I think you might need to expire the cluster as well/instead of the GHPython component inside it.

i’m sorry. I don’t understand what you mean

Sorry I was on my phone earlier. From a quick test this small edit appears to work:


GHPython_PersistentLastCurrentValueCheck._AHDgh.gh (12.2 KB)

2 Likes

Ah, never knew. Thanks so much

1 Like