Quick question, is there a more efficient way to determine the properties of a font (I'm basically talking about, bold, italic and underlined states) without having lots of if ...then statements ?

Basically what I'm getting at is that if I want to alter the bold state of a font how can I do it and leave the other applied states intact.