how to check moves in conditional branch

I am trying to check a move for example sweet scent in an event. So that I can trigger another event.

Code:
> Conditional Branch: Script:pbCheckMove(:SWEETSCENT)
 >Script:kernel.pbSweetScent
 >Script: Kernel.pbReceiveItem(:HONEY)
 >Text: You recieve honey.
 Else
 >Text: You do not have the move SweetScent

Apparently nothing happen, not even a single text when I interact this event . Am I doing something wrong? Please help.
Thanks to a kind soul in essential:
He kinda have solved it. In fact, he/she write in another script above the "Main" section

Code:
def pbHoneyGathering
  move = getID(PBMoves,:SWEETSCENT)
 movefinder = Kernel.pbCheckMove(move)
   if !movefinder
     Kernel.pbMessage(_INTL("There are many Bess nearby..."))
     Kernel.pbMessage(_INTL("A sweet scent might attract them."))
     return false
   end
   Kernel.pbMessage(_INTL("There are many Bees nearby...\1"))
   if Kernel.pbConfirmMessage(_INTL("Do you want to use Sweet Scent?"))
     speciesname = (movefinder) ? movefinder.name : $Trainer.name
     Kernel.pbMessage(_INTL("{1} used {2}!",speciesname,PBMoves.getName(move)))
     pbHiddenMoveAnimation(movefinder)
     Kernel.pbMessage(_INTL("Oh! The Bees left something!"))
     Kernel.pbItemBall(:HONEY)
     return true
   end
 return false
end

So I guess you can do the same for other moves just play around with "move = getID(PBMoves,:SWEETSCENT)"

Original thread: https://forums.rpgmakerweb.com/threads/how-to-check-moves-in-conditional-branch.98240/