Run Animation on Click Pressed from Character script

Hi. I’m really new to Unreal so this question may sound really basic to most of you, but I’m trying to create an attack animation that will be triggered when the user press left click and if the user press again the left click while under the first attack animation, a second punch animation should be triggered.

I’m trying to do ir using c++ and In my logic, what I want to do is to have a variable in the character Script named “isAttacking” that is the one that will triggered the first animation and if the character press click and this variable is already in true, then I’d change the value of another variable named “isCombo” or something that will triggered the second animartion.

The thing is I am really lost on how accomplish this, specially on how to connect the Character script with the variables with the Animation BP. I apprecciate any help you can give me.
(I’m sorry if this is not the right forum, please let me know.)

Anybody? :C