twig if Term ID is something, then do something
The original question is how to use the term id in a twig condition. You find the term id in the property target_id of the reference field:

{% if node.field_term_reference.target_id == '1' %}
  &lt;p&gt;The value is Bass&lt;/p&gt;
{% else %}
  &lt;p&gt;The value is Gold&lt;/p&gt;
{% endif %}