Change color of dynamic cardview

I’ve tried a lot but this simple looking thing is not working for me

I have value in which my Data and time are separated by _ like this

Data_time

My Data changes over time on the same day but time part is constant
I stored the list of value in tinydb and whenever I call data from online it checks whether it is present offline or not, if not present then I turn the cardview color to red. But this is not working when data is changed. I mean then all the cardview turned to red. I want that only that cardview turn to red which is not present in my tinydb offline storage.

show us your blocks, without blocks it is harder to suggest

Here it is, I was trying to replace it with old data in the or
But didn’t worked

have you debug the block using Do it? did you get false ?

What’s debug

I mean that only work when I have not changed the data
But after changing only that cardview turned to red
So I added the “or” logic but that makes the whole list of cardview to red wether i add new data or change the data
@Still-learning

That’s option not available to me maybe cuz I’m a mobile user

if you test/run the above code, among the global values if any value matches with tinydb values whose colour will not change. If the value is doesnot match those item cardview alone change the background colour. If it not work then you have to check the logic only one by one in system. or use the label to know whether it triggers true or false

Is there any way that it matches only the time only
Cuz my shows only one day data in it
@Still-learning

Still i am not clear with your query. If you shiw your sample datas i may clear