Request for help with Yanfly Action Sequences in regards to "Checking for target"

I am looking for a way to call for a secondary animation when one of the party members targets their own self with a healing ability,

I am not really versed in coding at all but what i am looking for is some type of "if target=user(or "actorsomething") animation so and so, else *regular animation*

Would this be possible?

SOLVED!!!
I managed to pull it off by copying a piece of Yanfly's code from somewhere targetting state affected targets and simply giving a permanent state to the actor and managed to make it work like so :



<setup action>



display action



<target action>



move user: targets, front, 17, offset x -70,



wait for movement



if target.isStateAffected(27)

{

animation 310: target

}

else

animation 316: user

animation 317: target

{

end



opacity user: 0, 1



ani wait: 25

action effect

face user: backward

ani wait: 4

opacity user: 100%, 1

wait for opacity

wait for animation

</target action>
I am not really versed in coding at all but what i am looking for is some type of "if target=user(or "actorsomething") animation so and so, else *regular animation*
The instructions on how to set up if-else blocks are already in the help document for action sequence pack 1

Code:
<target action>
move user: targets, front, 17, offset x -70,
wait for movement
animation 316: user
if target==user
  animation 309: target
else
  animation 317: target
end
opacity user: 0, 1
ani wait: 25
action effect
face user: backward
ani wait: 4
opacity user: 100%, 1
wait for opacity
wait for animation
</target action>
The instructions on how to set up if-else blocks are already in the help document for action sequence pack 1

Code:
<target action>
move user: targets, front, 17, offset x -70,
wait for movement
animation 316: user
if target==user
  animation 309: target
else
  animation 317: target
end
opacity user: 0, 1
ani wait: 25
action effect
face user: backward
ani wait: 4
opacity user: 100%, 1
wait for opacity
wait for animation
</target action>
Ah thanks so much! I tried reading around the plugin itself but couldn't find anything, this is a much cleaner way than what i came up with in the end!

Original thread: https://forums.rpgmakerweb.com/threads/request-for-help-with-yanfly-action-sequences-in-regards-to-checking-for-target.168792/