Quicktext: How can I set a conditional "prefix" for a person (not the subject line) e.g. Dr. or Prof.?

I use the Quicktext plugin for inserting e-mail templates which is super useful.

Some of my contacts have name prefixes, such as Dr.

What function in my script can I use so that it checks that IF there is such a prefix to that contact it puts it instead of Ms./Mr.?

Currently in my GoodMorning-Formal script part I have this line:

return "Dear Ms. [[TO=lastname|, dear Ms. ]],";

which checks to see if there are multiple addressees and then adds their last name/s.

How can I add something like [[prefix|Ms.]] so it depends on the existence of a contact’s prefix?

Thanks!