Thank you, now I have this code, but some syntax error occurs on the line with the if statement:
<?php
$terms = get_terms( 'book_type', array(
'hide_empty' => 0
) );
foreach( $terms as $term ) {
if (in_array('Fiction', get_field('book_group', 'book_type_'.$term->term_id))
{
continue;
echo '<div>' . $term->name . '</div>';
}
}
?>