Item check code wont work

So im trying to make a system where it checks the current player slot then checks if the item in that slot is equal to another item, and if it is do this.

the slot check works and the slot 1 item variable is set to the item when i pickup and same for slot 2 but in the blueprint for this interactable both variables have no value and therefore it always returns false