I need to make a script that the user puts in their last name and then the program returns who their counsellor is based on the first letter of their name.

Does any one know how to do this i have yet to find out how.

Something like:

if (name.firstLetter == a){ 
teacher = smith