This Pro tutorial shows how we can output an element on a single post pages only if a specified sub-field (custom field created using Meta Box) inside a specified group has a value.
Given the following scenario where a text-type of sub field having an ID of text_ppe9vzbqld is present inside a group-type of field with an ID of group_7t3lautdysc,
here’s the code you would need to add to child theme‘s functions.php or in a code snippet plugin:
add_filter( 'bricks/element/render', function( $render, $element ) {
// prevent "Fatal error: Uncaught Error: Call to undefined function rwmb_meta()" if Meta Box is not active
if ( ! function_exists( 'rwmb_meta' ) ) {
function rwmb_meta( $key, $args = [], $object_id = null ) {
return $render;
}
}
// check if the element has the ID of "qakgtp"
if ( $element->id !== 'qakgtp' ) {
return $render;
}
// get meta value of the group
$group_value = rwmb_meta( 'group_7t3lautdysc' ) ?: [];
// get sub-field value
$value = $group_value[ 'text_ppe9vzbqld' ] ?? '';
return $value;
}, 10, 2 );
where qakgtp is the ID of the element inside the single post (or a CPT for which the field group is assigned to) template.

You should also replace the group ID and your sub-field ID with the ones from your site.
Reference
https://docs.metabox.io/extensions/meta-box-group/#getting-sub-field-values
