Dynamic text mid sentence

Can dynamic text be incorporated mid-sentence while composing the email body? For instance, if I intend to craft the greeting, “Hello, firstname-ABC,” can Mautic determine whether the contact’s title is DEF? If it is, it should append “ABC” as a suffix. However, if the title is not DEF, it should append “XYZ,” resulting in “Hello, firstname-XYZ.”

Is it feasible to create these on-the-fly conditionals and seamlessly insert dynamic text?