Checking if source param is expired

I wish to make a component that keeps track of which of the upstream components has expired. So let’s say I have two inputs and one is expired and the other not, I can somehow register this. This can help create logics based on where the latest expiration is coming from.

My idea would be to look at the sources (IGH_Param) of each input and hoped to find a .IsExpired but I have had no luck.

Does anybody know how I can check whether a component is expired or not?

the interesting problem is the fact that the script gets executed when an input is changed - I think.
but sticky Variables can help:

checking_if_expired.gh (10.9 KB)

for some reason it gets executed again when you release the slider…
try the panels too

Do the upstream expirations typically change the value of the param too? You could store known param values as sticky vars and check on execution which are different from the last known values.

I could use sticky to store timestamps, but just comparing values would not be enough as I need a robust solution.

I fear that the best solution is subscribe to the expiration event of sources and record a timestamp LinkedIn to their id and if that timestamp has been updated I know the component has expired. But then I also need to keep track of added and deleted objects to not subscribe to events of components that are no longer connected. And that just get a little complex.