Boolean before destroy actor and remove index

Good evening! (This example is based off the [UMG Inventory tutorial][1] on YouTube) I am attempting to preform a boolean check before removing “Inventory Slot” from array index.

I tried creating a bool “ItemUsed” to be set on the BP_Pickup. Then placed a branch to check that bool before “remove index” in GameHUD to only remove the Inventory Slot if bool: ItemUsed was true. That did not work.

Should I be calling “remove index” from BP_Pickup? I’ve tried a few different things with no luck. Below are the two blueprints before my boolean modifications… I’m stumped.

GameHUD

BP_Ammo_Pickup

Any advice would be awesome!
Thanks!

Solved this… I was setting “ItemUsed” before I set “CurrentAmmo”. I set “ItemUsed” after set “CurrentAmmo” and it worked.

if anyone has any pointers, feel free to shine in! Thanks!