Check for Actor's Class [SOLVED]

Hello!
is there a script call that can check the actor class?

for example:
I created a script that will display the class of the actor. or like a conditional branch:
if class id 1
else
end

maybe someone can help me?
Quite simply, it's actor.class depending on which (Ruby) class you're working in. The ID of that class is stored under actor.class_id.

If you're using a script call in a conditional branch, you'd use $game_actors[x].class_id == y, with x being the actor id and y being the class id. Alternatively you can do $data_actors[x] but that returns the class value that is set in the database, not necessarily the class that an actor currently has.
Quite simply, it's actor.class depending on which (Ruby) class you're working in. The ID of that class is stored under actor.class_id.

If you're using a script call in a conditional branch, you'd use $game_actors[x].class_id == y, with x being the actor id and y being the class id.
Thank you for very quick respond!
this theard was solved !
Thanks Again!

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/check-for-actors-class-solved.110121/