Notification loop logic problem

I have a block logic that when an item is added to the list and is about to expire in a day, it will call Web1 which will notify the user. The problem is that whenever i switch to screen 1 where the notification command is, it keeps sending the same notification to the user even though its already sent. I tried fixing the logic so that it will only send once but failed. How can i fix this?


image

As per your logic, it will trigger if the day count reaches less than equal to 1 but greater than 0. Because if the day become less than 0 then the first logic wi trigger and throws x

so how do i fix it?

Your screen scrape doesn't show enough code.

From what i can see, you are inconsistent in your trimming of items, testing while trimmed but not trimming before collecting them.

Do a Cleanup Blocks, then a Download Blocks as Image to show all your blocks.

Just apply some simple logic. Keep a record in TinyDB of notifications sent. Then before sending a notification, check the record and only send if not previously sent.

How do i do that exactly?

My blocks are to big to fit in a screenshot and minimizing it might hide important details. I'll try sending you just the logic on how web 1 is called.

(Canned Reply: ABG - Download those blocks and post them here)

Please download and post each of those event block(s)/procedures here ...

P.S. These blocks can be dragged directly into your Blocks Editor workspace.

See

for how to download individual draggable block images.

(Canned Reply: ABG- Export & Upload .aia)
Export your .aia file and upload it here.
export_and_upload_aia