How to fire if tagged iteam disapears using a boolean

How to set up a Boolean to fire if tagged item disappears and I don’t know how to set a random fire command how do I create this.

You can add an OnDisable function to the object’s script. This is called as the object is disabled or destroyed so you could use it to set the boolean flag.