conditional statement based on terms

Use the Switch statement.

switch ($term->name) {
    case 'customtermincustomtaxonomy':
        // ...
        break;
    case 'anotherterm':
        // ...
        break;
    case 'somethingelse':
        // ...
        break;
}