Query Only Show Text on Posts With Certain Taxonomy Tag

You could use has_term Codex, like the following code:

if( has_term( 'jazz', 'genre' ) ) {
    echo 'This is something...';
}

Remember to add the third parameter – $post (int or object), if it’s not in the loop.