I want to make the notifications stop after 24 hours has passed, and return working after tapping on two pictures, I tried so many times to do it and tried the "If statement" but it's not working. (I'm a begginer)

Thanks!