Checking for a skill?

What would I need to ask a script to check if I wanted it to identify whether or not an actor (which it should already be looking at) knew a particular skill?
actor.skill_learn?(skill_id)


Since this is something you can check via events (in the Conditional Branch command), Game_Interpreter will tell you how to do it. For most things that have event commands, you can look at the Game_Interpreter class to see the equivalent script. Just search that script for the exact text that appears on the button in the event commands.
That makes complete sense and is a useful thing to know. Thanks for your help. 
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/checking-for-a-skill.17956/