Defining "Has Weapon"

Hello, everyone!

I’m really new to Unreal Engine, making my first actual project level newbie. I’m trying to define a simple boolean to check if the equipped weapon my character has is a pistol or rifle so that the right animation sets are used, but I can’t figure out how to define the variable “Has Rifle”

pls anyone help, youtube has failed me